mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 20:03:34 +01:00
34 lines
714 B
Text
34 lines
714 B
Text
# ID: {{ id }}
|
|
# Service configured by ncc
|
|
|
|
upstream up_{{ id }} {
|
|
{%- for upstream in upstreams %}
|
|
server {{ upstream }}:{{ port }};
|
|
{%- endfor %}
|
|
}
|
|
|
|
server {
|
|
server_name{% for domain in domains %} {{ domain }}{% endfor %}; # AUTOSSL > {{ id }}
|
|
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
|
|
# ssl
|
|
include /etc/nginx/ssl/{{ id }}.conf;
|
|
|
|
# logging
|
|
include include/logging-nolog.conf; # Change to "logging-debug" if needed
|
|
|
|
# gzip compression
|
|
include include/gzip.conf;
|
|
|
|
# security headers
|
|
include include/security-headers.conf;
|
|
|
|
# reverse proxy
|
|
location / {
|
|
proxy_pass {{ proto }}up_{{ id }};
|
|
include include/proxy-headers.conf;
|
|
}
|
|
|
|
}
|