mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
allow domain like 'com.example.com:8080',use external port and nginx programmer manager listen thses ports
This commit is contained in:
@ -12,4 +12,7 @@
|
||||
#listen [::]:443;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for listen_port in listen_ports %}
|
||||
listen listen_port;
|
||||
{% endfor %}
|
||||
server_name {{ domain_names | join: " " }};
|
||||
|
@ -56,6 +56,7 @@ proxy_http_version 1.1;
|
||||
{% if allow_websocket_upgrade == 1 or allow_websocket_upgrade == true %}
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_http_version 1.1;
|
||||
{% endif %}
|
||||
|
||||
|
Reference in New Issue
Block a user