Commit 9d2bff60 authored by Maxime Bombar's avatar Maxime Bombar

Track nginx

parent 0c76fcab
......@@ -5,9 +5,8 @@ upstream app_server {
server {
listen 80;
listen [::]:80 ipv6only=on;
# Changer les paramètres de la note ici
server_name note-test note-test.crans.org;
return 301 https://note-test.crans.org$request_uri;
server_name note note.crans.org;
return 301 https://note.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";
}
......@@ -15,12 +14,13 @@ server {
server {
listen 443;
listen [::]:443 ssl ipv6only=on;
# Changer les paramètres de la note ici aussi
server_name note-test note-test.crans.org;
server_name note note.crans.org;
ssl on;
ssl_certificate /etc/ssl/note/note.crt;
ssl_certificate_key /etc/ssl/note/note.key;
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;
keepalive_timeout 70;
access_log /var/log/nginx/note.log;
......@@ -34,6 +34,10 @@ server {
}
location /static {
alias /home/note/Django_Client/static;
alias /home/note/note-kfet-2015-django/static;
}
location /note/media {
alias /home/note/note-kfet-2015-django/media;
}
}
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