Commit a7bb2100 authored by khalid's avatar khalid
Browse files

Add a new annotated journals

parent d5747337
......@@ -8,9 +8,24 @@ this file contain all the references (books, journals ...) as extracted from ISE
* **articles_ISEM.csv** :
this file is derived by : `awk 'BEGIN{FS="\t"} {if($2=="Article"){print} }' bd_biblio_1220.csv > articles_ISEM.csv`
* **ethical_journals.csv** :
is a liste of "Ethical" journals mainained by Nicolas Galtier containing informations on a selected journals among those where ISEM researchers published their works.
* **acad_journal_synonyms.tsv** :
Synonymous names for some DAFNEE journals (in ethical_journals.csv)
* **annotated_journals.tsv** :
This is the current list of all annotated journals (where ISEM authors published from 2014 + some others)
* **nonacad_journal_synonyms.tsv** :
Synonymous names for some non DAFNEE journals
* **liste_personnel_ISEM_260321.csv**
is a list of ISEM staff extracted from the web site by Carole Smadja
......
......@@ -18,15 +18,16 @@ require(gridExtra)
library(bslib)
synonymous <- read.table("./journal_synonyms.tsv", header=F, quote="", sep="\t", stringsAsFactors=F)
aca_synonymous <- read.table("./journals/acad_journal_synonyms.tsv", header=F, quote="", sep="\t", stringsAsFactors=F)
nonaca_synonymous <- read.table("./journals/nonacad_journal_synonyms.tsv", header=F, quote="", sep="\t", stringsAsFactors=F)
#liste of all journals where ISEM researchers published there results since 2014
ISEMjournals <- read.table("./ISEM_journal_since_2014.txt", header=F, sep="\t", quote = '"', stringsAsFactors=F)
AnnotatedJournals <- read.table("./journals/annotated_journals.tsv", header=F, sep="\t", quote = '"', stringsAsFactors=F)
#ajouter les synonmymes de DAFNEE
ISEMjournals = rbind(ISEMjournals, synonymous)
#ajouter TOUS les synonmymes
AnnotatedJournals = rbind(AnnotatedJournals, nonaca_synonymous,aca_synonymous )
ethicals <- read.table("./ethical_journals.csv", header=T, sep="\t",quote = '""', stringsAsFactors=F)
ethicals <- read.table("./journals/ethical_journals.csv", header=T, sep="\t",quote = '""', stringsAsFactors=F)
ethicals = ethicals[, - which(colnames(ethicals) == "curator")] #d'ont show curators
ethicals = ethicals[, - which(colnames(ethicals) == "curator_notes")] #d'ont show curators_notes
......@@ -45,10 +46,10 @@ ethicals$website <- paste0("<a href='",ethicals$website,"' target='_blank'>",eth
#change columns order to remove IF filering not showing at the DT rigth side
ethicals = ethicals[,c(1:7, 9,10,8)]
DAFNEE = c(toupper(trimws(ethicals$journal)), toupper(trimws(synonymous[,1])) )
DAFNEE = c(toupper(trimws(ethicals$journal)), toupper(trimws(aca_synonymous[,1])) )
ISEMpub <- read.table("./liste_Papers_personnel_publiant.tsv", header=T, sep="\t", quote = "")
ISEMpub <- read.table("./papers/liste_Papers_personnel_publiant.tsv", header=T, sep="\t", quote = "")
#limiter aux pub depuis 2014
#ISEMpub = ISEMpub[ISEMpub$year >= 2014,]
personnel = unique(ISEMpub$nom)
......@@ -63,8 +64,8 @@ for ( pp in 1:length(personnel) )
ISEMdistrib$totpubs[pp] = length(pubs)
#only pubs in ISEM journals since 2014
userinISEMjournals = toupper(trimws(pubs)) %in% toupper(trimws(ISEMjournals[,1]))
ISEMdistrib$totISEMrated[pp] = sum(userinISEMjournals)
userinAnnotatedJournals = toupper(trimws(pubs)) %in% toupper(trimws(AnnotatedJournals[,1]))
ISEMdistrib$totISEMrated[pp] = sum(userinAnnotatedJournals)
}
# retain only persons with more than 4 papers
......@@ -255,8 +256,8 @@ observeEvent(input$NewPubmedAuthor,{
t = getPubmedPapiers(nom, prenom, maxPapers=100, "Bel-Kh.csv")
Ethical = rep("not inspected", dim(t)[1])
inISEMjournals = toupper(trimws(t$journal)) %in% toupper(trimws(ISEMjournals[,1]))
Ethical[inISEMjournals] = "no"
inAnnotatedJournals = toupper(trimws(t$journal)) %in% toupper(trimws(AnnotatedJournals[,1]))
Ethical[inAnnotatedJournals] = "no"
indafnee = toupper(trimws(t$journal)) %in% DAFNEE
Ethical[indafnee] = "ok"
t = cbind( t, "IN DAFNEE"=Ethical)
......@@ -281,8 +282,8 @@ observeEvent(input$ExtractISEMAuthor,{
# s'ils sont dans DAFNEE ou sysnonymes ils seront tagués ok
Ethical = rep("not inspected", dim(t)[1])
inISEMjournals = toupper(trimws(t$journal)) %in% toupper(trimws(ISEMjournals[,1]))
Ethical[inISEMjournals] = "no"
inAnnotatedJournals = toupper(trimws(t$journal)) %in% toupper(trimws(AnnotatedJournals[,1]))
Ethical[inAnnotatedJournals] = "no"
indafnee = toupper(trimws(t$journal)) %in% DAFNEE
Ethical[indafnee] = "ok"
t = cbind( t, "IN DAFNEE"=Ethical)
......@@ -417,7 +418,7 @@ output$shiny_table <- DT::renderDataTable({
datatable(this_table$table, style= "bootstrap4",class = 'table-bordered table-condensed',
caption = htmltools::tags$caption( style = 'caption-side: top; text-align: center;',
htmltools::HTML('DAFNEE academia-friendly Journals : <span style="color:forestgreen; font-size:18px"><i class="glyphicon glyphicon-thumbs-up"></i></span>&nbsp;&nbsp;&nbsp; not academia-friendly Journals : <span style="color:red; font-size:18px"><i class="glyphicon glyphicon-thumbs-down"></i></span>&nbsp;&nbsp;&nbsp; Journals not inspected : <span style="color:grey; font-size:18px"><i class="glyphicon glyphicon-eye-close"></i></span>' )
htmltools::HTML('DAFNEE academia-friendly Journals : <span style="color:forestgreen; font-size:18px"><i class="glyphicon glyphicon-thumbs-up"></i></span>&nbsp;&nbsp;&nbsp; not in DAFNEE academia-friendly Journals : <span style="color:red; font-size:18px"><i class="glyphicon glyphicon-thumbs-down"></i></span>&nbsp;&nbsp;&nbsp; Journals not inspected : <span style="color:grey; font-size:18px"><i class="glyphicon glyphicon-eye-close"></i></span>' )
),
options = list( pageLength = 15,
dom = "Bfrtip",
......@@ -463,7 +464,7 @@ output$shiny_table <- DT::renderDataTable({
output$ethicalityPlot <- renderPlot({
#here we will ignore journals not listed in ISEMjournals since 2014
#here we will ignore journals not listed in AnnotatedJournals since 2014
nbDAFNEE = sum(this_table$table$`IN DAFNEE`=="ok")
nbISEMnotDAFNEE = sum(this_table$table$`IN DAFNEE`=="no")
# if (input$IndexMethod == 1) # all papers
......
......@@ -9,7 +9,7 @@ Advances in Ecological Research
African Archaeological Review
African Journal of Aquatic Science
Agriculture
Agriculture and Natural Resources - formerly Kasetsart Journal
Agriculture and Natural Resources
Agronomy
Algorithmica
Algorithms for Molecular Biology
......@@ -86,6 +86,7 @@ Biota Neotropica
Biotropica
BMC Bioinformatics
BMC Biology
BMC Ecology
BMC Evolutionary Biology
BMC Genetics
BMC Genomics
......@@ -158,6 +159,7 @@ Ecological Engineering
Ecological Indicators
Ecological Informatics
Ecological Modelling
Ecological Monographs
Ecology
Ecology and Evolution
Ecology Letters
......@@ -239,6 +241,7 @@ General and Comparative Endocrinology
Genes
Genetica
Genetics
Genetics Research
Genome Announcements
Genome Biology
Genome Biology and Evolution
......@@ -268,7 +271,7 @@ Hydrobiologia
IAWA Journal
Ideas in Ecology and Evolution
IEEE/ACM Transactions on Computational Biology and Bioinformatics
Infection, Genetics and Evolution,genetique,evolution,2.6,Elsevier,hybride,non,NA,NA
Infection, Genetics and Evolution
Inland Waters
Insect Molecular Biology
Insectes Sociaux
......@@ -346,6 +349,7 @@ Journal of Mathematical Biology
Journal of Medical Entomology
Journal of Microbiology and Biotechnology
Journal of Micropalaeontology
Journal of Molecular Evolution
Journal of Morphology
Journal of Paleolimnology
Journal of Paleontology
......@@ -361,6 +365,7 @@ Journal of the World Aquaculture Society
Journal of Theoretical Biology
Journal of Tropical Ecology
Journal of Vegetation Science
Journal of Vertebrate Biology
Journal of Vertebrate Paleontology
Journal of Virology
Journal of Wildlife Diseases
......@@ -390,7 +395,6 @@ Marine Biology Research
Marine Ecology Progress Series
Marine Environmental Research
Marine Mammal Science
Marine Mammal Science
Marine Micropaleontology
Marine Pollution Bulletin
Mastozoología Neotropical
......@@ -402,6 +406,7 @@ Memoires du Museum d Histoire Naturelle
Methods in Ecology and Evolution
Methods in Molecular Biology
Microbial Pathogenesis
Microbiology Resource Announcements
Microbiome
Minerals
Mitochondrial DNA
......@@ -417,6 +422,7 @@ MorphoMuseum
Nature
Nature Communications
Nature Ecology & Evolution
Nature Genetics
Nature Geoscience
Nature Neuroscience
Nature Reviews Genetics
......@@ -457,6 +463,19 @@ Parasitology
Parasitology Research
Past Global Changes Magazine
PCI Evolutionary Biology
Peer Community In Animal Science
Peer Community In Archaeology
Peer Community In Circuit Neuroscience
Peer Community In Ecology
Peer Community In Ecotoxicology and Environmental Chemistry
Peer Community In Evolutionary Biology
Peer Community In Forest and Wood Sciences
Peer Community in Genomics
Peer Community In Mathematical and Computational Biology
Peer Community In Network Science
Peer Community In Paleontology
Peer Community In Registered Reports
Peer Community In Zoology
PeerJ
Personality and Individual Differences
Perspectives in Plant Ecology
......@@ -491,7 +510,7 @@ Rethinking Ecology
Review of Palaeobotany and Palynology
Reviews in Aquaculture
Reviews in Fish Biology and Fisheries
Revue d'élevage et de médecine vétérinaire des pays tropicaux
Revue délevage et de médecine vétérinaire des pays tropicaux
Revue de Paleobiologie
Royal Society Open Science
Scandinavian Journal of Statistics
......@@ -524,6 +543,7 @@ Tectonophysics
Terra Nova
The American Naturalist
The Anatomical Record
The ISEM Journal
The Holocene
The Lancet Planetary Health
The Paleontological Society Papers
......@@ -564,3 +584,4 @@ Zoological Journal of the Linnean Society
Zoology
Zoosystema
Zootaxa
Algorithms for molecular biology
Algorithms for molecular biology : AMB
BioEssays
BioEssays : news and reviews in molecular, cellular and developmental biology
Bioinformatics
Bioinformatics (Oxford, England)
Chromosome Research
Chromosome research : an international journal on the molecular, supramolecular and evolutionary aspects of chromosome biology
Comparative biochemistry and physiology
Comparative biochemistry and physiology. Part B, Biochemistry & molecular biology
Current biology
Current biology : CB
European Journal of Human Genetics
European journal of human genetics : EJHG
Experimental and Applied Acarology
Experimental & applied acarology
Genetics Research
Genetical Research
Infection, genetics and evolution
Infection, genetics and evolution : journal of molecular epidemiology and evolutionary genetics in infectious diseases
International journal for parasitology: Parasites and wildlife
International journal for parasitology. Parasites and wildlife
Journal of Experimental Biology
The Journal of Experimental Biology
Journal of experimental zoology
Journal of experimental zoology. Part B, Molecular and developmental evolution
Medecine/Sciences
Medecine sciences : M/S
M S-MEDECINE SCIENCES
Methods in molecular biology
Methods in molecular biology (Clifton, N.J.)
Mitochondrial DNA
Mitochondrial DNA. Part A, DNA mapping, sequencing, and analysis
Nature Reviews Genetics
Nature reviews. Genetics
Palaeogeography, Palaeoclimatology, Palaeoecology
Palaeogeography Palaeoclimatology Palaeoecology
Parasites and Vectors
Parasites & vectors
Science of Nature
The Science of Nature
Naturwissenschaften
Die naturwissenschaften
Science of the Total Environment
The Science of the total environment
The Holocene
HOLOCENE
Trends in ecology and evolution
Trends in ecology & evolution
Trends in genetics
Trends in genetics : TIG
#kill running shiny apps
sudo kill -9 $(ps aux | grep shiny | grep -v grep | awk '{print $2}')
#start newer instances
for i in {1..30}
do
if [ $i -lt 10 ] ;then
#cp -R /opt/shiny/bibethique /opt/shiny/bibethique800$i
#sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution$i'/" /opt/shiny/bibethique800$i/app.R
Rscript -e "setwd('/opt/shiny/bibethique800$i');shiny::runApp('/opt/shiny/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> /usr/local/mbbshiny/bibethique_${i}.log &
else
#cp -R /opt/shiny/bibethique /opt/shiny/bibethique80$i
#sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution$i'/" /opt/shiny/bibethique80$i/app.R
Rscript -e "setwd('/opt/shiny/bibethique80$i');shiny::runApp('/opt/shiny/bibethique80$i', port=80$i, host='0.0.0.0')" 1>&2 >> /usr/local/mbbshiny/bibethique_${i}.log &
fi
done
#Pour initialiser
for i in {1..30}
do
if [ $i -lt 10 ] ;then
curl 162.38.181.43:800$i
else
curl 162.38.181.43:80$i
fi
done
# on shiny.mbb.univ-montp2.fr (162.38.181.10) juste 10 instances
dossier="/usr/local/maintenance"
for i in {0..9}
do
cp -R $dossier/bibethique $dossier/bibethique800$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution. .10:$i'/" $dossier/bibethique800$i/app.R
Rscript -e "setwd('$dossier/bibethique800$i');shiny::runApp('$dossier/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> $dossier/bibethiquelogs/bibethique_${i}.log &
done
#Pour initialiser
for i in {0..9}
do
curl 162.38.181.10:800$i
done
# on khalid (162.38.181.45) juste 10 instances
dossier="/disk1/projets/workspace"
for i in {0..9}
do
cp -R $dossier/bibethique $dossier/bibethique800$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution. .45:$i'/" $dossier/bibethique800$i/app.R
Rscript -e "setwd('$dossier/bibethique800$i');shiny::runApp('$dossier/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> $dossier/bibethiquelogs/bibethique_${i}.log &
done
#Pour initialiser
for i in {0..9}
do
curl 162.38.181.45:800$i
done
#on idcov2
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy
ce fichier service est créee : /lib/systemd/system/caddy.service
modifier le fichier de config : /etc/caddy/Caddyfile
:80 {
handle_path /* {
reverse_proxy * {
to :8001 :8002 :8003 :8004 :8005 :8006 :8007 :8008 :8009 :8010 :8011 :8012 :8013 :8014 :8015 :8016 :8017 :8018 :8019 :8020 :8021 :8022 :8023 :8024 :8025 :8026 :8027 :8028 :8029 :8030 162.38.181.10:8000 162.38.181.10:8001 162.38.181.10:8002 162.38.181.10:8003 162.38.181.10:8004 162.38.181.10:8005 162.38.181.10:8006 162.38.181.10:8007 162.38.181.10:8008 162.38.181.10:8009 162.38.181.45:8000 162.38.181.45:8001 162.38.181.45:8002 162.38.181.45:8003 162.38.181.45:8004 162.38.181.45:8005 162.38.181.45:8006 162.38.181.45:8007 162.38.181.45:8008 162.38.181.45:8009
lb_policy random_choose 2
#lb_policy round_robin
#health_path /ok
#health_interval 10s
}
}
}
sudo service caddy reload
awk 'BEGIN{FS=","; PROCINFO["sorted_in"]="@ind_str_asc"}
{
if (NR == FNR)
{
if (FNR > 1) {ethicals[toupper($1)]++}
}
else
{
FS = "\t";
if (FNR > 1)
{
a[$1"\t"$2]++
if (toupper($7) in ethicals) user_ethical[$1"\t"$2]++
}
}
}
END{for (pers in a) print pers "\t" a[pers] "\t" user_ethical[pers]}' ethical_journals.csv liste_Papers_personnel_publiant.tsv
TODO
add ssl https://support.rstudio.com/hc/en-us/articles/213733868-Running-Shiny-Server-with-a-Proxy
self signed ou Rémy ?
problème backround when user data is loaded
problème when user last and first name are set but get record butons not clicked ?
shinyloadtest va fonctionner sur une seule instance (directive ip_hash donne toujours la même redirection pour une IP source donnée )
lancer shinyloadtest depuis 3 machines différentes avec un nombre de user de 10
#kill running shiny apps
sudo kill -9 $(ps aux | grep shiny | grep -v grep | grep -v mbbshiny | awk '{print $2}')
dossier =
cd $dossier/bibethique
#get latest version
git reset --hard
git pull
#start newer instances
for i in {1..30}
do
if [ $i -lt 10 ] ;then
cp -R $dossier/bibethique $dossier/bibethique800$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution$i'/" $dossier/bibethique800$i/app.R
Rscript -e "setwd('$dossier/bibethique800$i');shiny::runApp('$dossier/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> /usr/local/mbbshiny/bibethique_${i}.log &
else
cp -R $dossier/bibethique $dossier/bibethique80$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution$i'/" /$dossier/bibethique80$i/app.R
Rscript -e "setwd('$dossier/bibethique80$i');shiny::runApp('$dossier/bibethique80$i', port=80$i, host='0.0.0.0')" 1>&2 >> /usr/local/mbbshiny/bibethique_${i}.log &
fi
done
#Pour initialiser
# for i in {1..30}
# do
# if [ $i -lt 10 ] ;then
# curl 162.38.181.43:800$i
# else
# curl 162.38.181.43:80$i
# fi
# done
# on shiny.mbb.univ-montp2.fr (162.38.181.10) juste 10 instances
dossier="/usr/local/maintenance"
cd $dossier/bibethique
#get latest version
git reset --hard
git pull
for i in {0..9}
do
cp -R $dossier/bibethique $dossier/bibethique800$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution. .10:$i'/" $dossier/bibethique800$i/app.R
Rscript -e "setwd('$dossier/bibethique800$i');shiny::runApp('$dossier/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> $dossier/bibethiquelogs/bibethique_${i}.log &
done
#Pour initialiser
# for i in {0..9}
# do
# curl 162.38.181.10:800$i
# done
# on khalid (162.38.181.45) juste 10 instances
dossier="/disk1/projets/workspace"
cd $dossier/bibethique
#get latest version
git reset --hard
git pull
for i in {0..9}
do
cp -R $dossier/bibethique $dossier/bibethique800$i
sed -i "s/entete = \"DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution\"/entete = 'DAFNEE, a Database of Academia Friendly jourNals in Ecology and Evolution. .45:$i'/" $dossier/bibethique800$i/app.R
Rscript -e "setwd('$dossier/bibethique800$i');shiny::runApp('$dossier/bibethique800$i', port=800$i, host='0.0.0.0')" 1>&2 >> $dossier/bibethiquelogs/bibethique_${i}.log &
done
#Pour initialiser
# for i in {0..9}
# do
# curl 162.38.181.45:800$i
# done
#on idcov2
Dans /etc/nginx/nginx.conf
user mbbshiny;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 300;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream myapp {
ip_hash; #must be sticky address for shiny https://support.rstudio.com/hc/en-us/articles/222450587 !!!
server 162.38.181.43:8001;
server 162.38.181.43:8002;
server 162.38.181.43:8003;
server 162.38.181.43:8004;
server 162.38.181.43:8005;
server 162.38.181.43:8006;
server 162.38.181.43:8007;
server 162.38.181.43:8008;
server 162.38.181.43:8009;
server 162.38.181.43:8010;
server 162.38.181.43:8011;
server 162.38.181.43:8012;
server 162.38.181.43:8013;
server 162.38.181.43:8014;
server 162.38.181.43:8015;
server 162.38.181.43:8016;
server 162.38.181.43:8017;
server 162.38.181.43:8018;
server 162.38.181.43:8019;
server 162.38.181.43:8020;
server 162.38.181.43:8021;
server 162.38.181.43:8022;
server 162.38.181.43:8023;
server 162.38.181.43:8024;
server 162.38.181.43:8025;
server 162.38.181.43:8026;
server 162.38.181.43:8027;
server 162.38.181.43:8028;
server 162.38.181.43:8029;
server 162.38.181.43:8030;
server 162.38.181.45:8000;
server 162.38.181.45:8001;
server 162.38.181.45:8002;
server 162.38.181.45:8003;
server 162.38.181.45:8004;
server 162.38.181.45:8005;
server 162.38.181.45:8006;
server 162.38.181.45:8007;
server 162.38.181.45:8008;
server 162.38.181.45:8009;
server 162.38.181.10:8000;
server 162.38.181.10:8001;
server 162.38.181.10:8002;
server 162.38.181.10:8003;
server 162.38.181.10:8004;
server 162.38.181.10:8005;
server 162.38.181.10:8006;
server 162.38.181.10:8007;
server 162.38.181.10:8008;
server 162.38.181.10:8009;
keepalive 300;
}
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Dans fichier /etc/nginx/sites-enabled/shiny :
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
#ssl_certificate /etc/letsencrypt/live/www.domain.tld /fullchain.pem; # managed by Certbot
#ssl_certificate_key /etc/letsencrypt/live/www.domain.tld /privkey.pem; # managed by Certbot
root /opt/shiny;
index index.html index.htm index.nginx-debian.html;
server_name www.domain.tld DAFNEE.domain.tld;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_buffering off;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 300;
proxy_send_timeout 300;
proxy_read_timeout 300;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass http://DAFNEE;
proxy_redirect http://DAFNEE/ $scheme://$host/;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment