# ------------------------------------------------------------- # Webserver # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Project: Nasqueron # Site: netbox.nasqueron.org # License: Trivial work, not eligible to copyright # ------------------------------------------------------------- server { # Maintained by Dorian listen 80; listen [::]:80; server_name netbox.nasqueron.org; include includes/letsencrypt; return 301 https://$host$request_uri; } server { server_name netbox.nasqueron.org; include includes/tls; ssl_certificate /usr/local/etc/letsencrypt/live/netbox.nasqueron.org/fullchain.pem; ssl_certificate_key /usr/local/etc/letsencrypt/live/netbox.nasqueron.org/privkey.pem; include includes/letsencrypt; client_max_body_size 25m; location /static/ { alias /srv/netbox/netbox/netbox/static/; } location / { proxy_pass http://127.0.0.1:17000; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }