Commit 6d398f53 authored by Praibait's avatar Praibait

Nettoyage again..

parent df4c1bb2
This diff is collapsed.
upstream app_server {
server unix:/tmp/gunicorn-note.sock fail_timeout=0;
server {
listen 80;
listen [::]:80 ipv6only=on;
# Changer les paramètres de la note ici
server_name note-test;
return 301$request_uri;
# On spécifie au client qu'il ne doit pas faire de HTTP ici
add_header Strict-Transport-Security "max-age=31536000";
server {
listen 443;
listen [::]:443 ssl ipv6only=on;
# Changer les paramètres de la note ici aussi
server_name note-test;
ssl on;
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;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app_server;
location /static {
alias /home/note/Django_Client/static;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment