mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-07 22:21:35 +01:00
feat: overwrite target port
This commit is contained in:
@@ -6,8 +6,15 @@ server {
|
|||||||
|
|
||||||
proxy_timeout {{ proxy_timeout }};
|
proxy_timeout {{ proxy_timeout }};
|
||||||
proxy_responses 1;
|
proxy_responses 1;
|
||||||
proxy_pass {{ targetip }}:$server_port;
|
|
||||||
|
|
||||||
{% if transparent %} proxy_bind $remote_addr{% if udp %}:$remote_port{% endif %} transparent; {% endif %}
|
{% if targetportoverwrite %}
|
||||||
|
proxy_pass {{ targetip }}:{{ targetportoverwrite }};
|
||||||
|
{% else %}
|
||||||
|
proxy_pass {{ targetip }}:$server_port;
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if transparent %}
|
||||||
|
proxy_bind $remote_addr:{% if targetportoverwrite %}{{ targetportoverwrite }}{% else %}$remote_port{% endif %} transparent;
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user