server { listen 80; server_name {{ settings.server_name }}; include /etc/nginx/include/certbot.conf; location /static/ { alias /data/clients/360south/sms_feed/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; } } server { listen 443 ssl; server_name {{ settings.server_name }}; include /etc/nginx/include/ssl.conf; ssl_certificate /etc/nginx/ssl.d/{{ settings.server_name }}/fullchain.pem; ssl_certificate_key /etc/nginx/ssl.d/{{ settings.server_name }}/privkey.pem; location /static/ { alias /data/clients/360south/sms_feed/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; } }