Commit ea8c218a authored by Maxime Bombar's avatar Maxime Bombar

adapte nginx pour galois

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