#server {
#    listen 443 ssl;
#    server_name forms-condorcet.dev.entrouvert.org;
#
#    ssl_certificate /etc/ssl/certs/cert-example.pem;       # un certificat couvrant tous les noms des instances prévues
#    ssl_certificate_key /etc/ssl/private/cert-example.key;
#
#    access_log /var/log/nginx/<hostname>-access.log combined;
#    error_log /var/log/nginx/<hostname>-error.log;
#
#    location ~ ^/static/(.+)$ {
#        root /;
#        try_files /var/lib/<application>/tenants//static/
#                  /var/lib/<application>/tenants//theme/static/
#                  /var/lib/<application>/collectstatic/
#                  =404;
#    }
#
#    location ~ ^/media/(.+)$ {
#        alias /var/lib/<application>/tenants//media/;
#    }
#
#    location / {
#        proxy_pass         http://unix:/run/<application>/<application>.sock;
#        proxy_set_header   Host ;
#        proxy_set_header   X-Forwarded-SSL on;
#        proxy_set_header   X-Forwarded-Protocol ssl;
#        proxy_set_header   X-Forwarded-Proto https;
#        proxy_set_header   X-Real-IP       ;
#        proxy_set_header   X-Forwarded-For ;
#    }
#}

server {
    listen   192.168.43.32:80;
    server_name  forms-condorcet.dev.entrouvert.org;
    access_log  /var/log/nginx/wcs-access.log;
    error_log  /var/log/nginx/wcs-error.log;
    location / {
        include scgi_params;
        scgi_pass localhost:3001;
        scgi_param SCRIPT_NAME '';
        #scgi_param SCRIPT_NAME '/wcs/qommon/scgi_server.py';
        #scgi_param SCRIPT_FILENAME '/home/pmarillonnet/devel/wcs/wcs/qommon/scgi_server.py';
        scgi_param PATH_INFO $uri;
        scgi_param HTTPS no;
        scgi_connect_timeout 30s;
    }
}
