server { listen 80; server_name {{ settings.server_name }}; include /etc/nginx/include/certbot.conf; client_max_body_size 8M; location /static/ { alias /data/clients/andrew/xword/static/; expires 30d; autoindex off; } location / { # The trailing '/' is important as it causes nginx to send the # cleaned URI through to the destination service (double slashes # removed, etc.). proxy_pass http://127.0.0.1:{{ settings.listen_port }}/; include /etc/nginx/include/proxy.conf; } }