Commit 4669abbe authored by Nicolas Dandrimont's avatar Nicolas Dandrimont

[utils/intranet.nginx] Configuration nginx pour l'intranet

parent 9a1b09cd
upstream app_server {
server unix:/tmp/gunicorn-intranet.sock fail_timeout=0;
server {
listen 80;
rewrite ^/(.*) https://$server_name/$1 permanent;
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/certs/intranet_server.pem;
ssl_certificate_key /etc/ssl/private/intranet_privatekey.pem;
keepalive_timeout 70;
access_log /var/log/nginx/intranet.log;
location / {
root /usr/local/django/intranet/;
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 /usr/local/django/intranet/static;
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