ansible-role-netbox/templates/nginx.conf.j2

23 lines
500 B
Plaintext
Raw Normal View History

2022-07-08 21:51:48 +02:00
# {{ 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;
}
}