23 lines
500 B
Django/Jinja
23 lines
500 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
server {
|
|
listen [::]:443 ssl ipv6only=off default;
|
|
|
|
# CHANGE THIS TO YOUR SERVER'S NAME
|
|
server_name _;
|
|
|
|
include snakeoil.conf;
|
|
|
|
client_max_body_size 25m;
|
|
|
|
location /static/ {
|
|
alias {{ netbox_path }}/netbox/static/;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:8001;
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
} |