24 lines
593 B
Plaintext
24 lines
593 B
Plaintext
|
{% for fqdn in fqdns %}
|
||
|
server {
|
||
|
server_name {{ fqdn }};
|
||
|
|
||
|
listen [::]:443 ssl ipv6only=off;
|
||
|
ssl_certificate /etc/letsencrypt/live/{{ fqdn }}/fullchain.pem;
|
||
|
ssl_certificate_key /etc/letsencrypt/live/{{ fqdn }}/privkey.pem;
|
||
|
|
||
|
client_max_body_size 100m;
|
||
|
|
||
|
location /static/ {
|
||
|
alias {{ user_info.home }}/app/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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
{% endfor %}
|