mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
27 lines
764 B
Django/Jinja
27 lines
764 B
Django/Jinja
server {
|
|
|
|
# {{ comment }}
|
|
listen {{ portstring }} {% if udp %} udp {% endif %}{% if ssl %} ssl {% endif %};
|
|
listen [::]:{{ portstring }} {% if udp %} udp {% endif %}{% if ssl %} ssl {% endif %};
|
|
|
|
{% if not extra_content or not "proxy_timeout" in extra_content %}
|
|
proxy_timeout {{ proxy_timeout }};
|
|
proxy_responses 1;
|
|
{% endif %}
|
|
|
|
{% if targetportoverwrite %}
|
|
proxy_pass {{ targetip }}:{{ targetportoverwrite }};
|
|
{% else %}
|
|
proxy_pass {{ targetip }}:$server_port;
|
|
{% endif %}
|
|
|
|
{% if extra_content %}
|
|
{{ extra_content }}
|
|
{% endif %}
|
|
|
|
{% if transparent %}
|
|
proxy_bind $remote_addr:{% if targetportoverwrite %}{{ targetportoverwrite }}{% else %}$remote_port{% endif %} transparent;
|
|
{% endif %}
|
|
}
|
|
|