Commit ea8c218a authored by Maxime Bombar's avatar Maxime Bombar

adapte nginx pour galois

parent 60b12e0c
...@@ -5,8 +5,8 @@ upstream app_server { ...@@ -5,8 +5,8 @@ upstream app_server {
server { server {
listen 80; listen 80;
listen [::]:80 ipv6only=on; listen [::]:80 ipv6only=on;
server_name note note.crans.org; server_name note-galois note-galois.crans.org;
return 301 https://note.crans.org$request_uri; return 301 https://note-galois.crans.org$request_uri;
# On spécifie au client qu'il ne doit pas faire de HTTP ici # On spécifie au client qu'il ne doit pas faire de HTTP ici
add_header Strict-Transport-Security "max-age=31536000"; add_header Strict-Transport-Security "max-age=31536000";
} }
...@@ -14,13 +14,11 @@ server { ...@@ -14,13 +14,11 @@ server {
server { server {
listen 443; listen 443;
listen [::]:443 ssl ipv6only=on; listen [::]:443 ssl ipv6only=on;
server_name note note.crans.org; server_name note-galois note-galois.crans.org;
ssl on; ssl on;
ssl_certificate /etc/letsencrypt/live/note.crans.org/fullchain.pem; ssl_certificate /etc/letsencrypt/live/note-galois.crans.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/note.crans.org/privkey.pem; ssl_certificate_key /etc/letsencrypt/live/note-galois.crans.org/privkey.pem;
#ssl_certificate /etc/ssl/note/note.crt;
#ssl_certificate_key /etc/ssl/note/note.key;
keepalive_timeout 70; keepalive_timeout 70;
access_log /var/log/nginx/note.log; access_log /var/log/nginx/note.log;
......
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