upstream re2o { # Path of the unix socket. For example : server unix:///var/run/uwsgi/app/re2o/re2o.sock; } server { listen 80; listen [::]:80; server_name {{ (query('ldap', 'ip', 're2o', 'adm') | ipv4)[0] }} re2o.adm.crans.org intranet.crans.org intranet.infra.crans.org; # Modify this value according to your infrastructure. charset utf-8; server_tokens off; location /static { # Alias the path to the static files. For instance, alias /var/www/re2o/static_files/; } location /javascript { # Alias the path to the static files. For instance, alias /usr/share/javascript/; } location /media { alias /var/www/re2o/media/; } location / { uwsgi_pass re2o; # Include the uwsgi_params file. For instance : include /etc/nginx/uwsgi_params; } }