mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-01 15:47:23 +00:00
Compare commits
1 Commits
ca79f19506
...
v2.12.3
Author | SHA1 | Date | |
---|---|---|---|
c5a319cb20 |
@ -234,19 +234,6 @@ const internalNginx = {
|
|||||||
|
|
||||||
// Set the IPv6 setting for the host
|
// Set the IPv6 setting for the host
|
||||||
host.ipv6 = internalNginx.ipv6Enabled();
|
host.ipv6 = internalNginx.ipv6Enabled();
|
||||||
|
|
||||||
|
|
||||||
if ( nice_host_type === 'proxy_host' ) {
|
|
||||||
let listen_ports = [];
|
|
||||||
host.domain_names.map( function (domain_name) {
|
|
||||||
if ( domain_name.indexOf(':') > 0 ){
|
|
||||||
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(':')+1)));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if ( listen_ports.length > 0 ){
|
|
||||||
host.listen_ports = listen_ports;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
locationsPromise.then(() => {
|
locationsPromise.then(() => {
|
||||||
renderEngine
|
renderEngine
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
#listen [::]:443;
|
#listen [::]:443;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for listen_port in listen_ports %}
|
|
||||||
listen listen_port;
|
|
||||||
{% endfor %}
|
|
||||||
server_name {{ domain_names | join: " " }};
|
server_name {{ domain_names | join: " " }};
|
||||||
{% if http2_support == 1 or http2_support == true %}
|
{% if http2_support == 1 or http2_support == true %}
|
||||||
http2 on;
|
http2 on;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
add_header X-Served-By $host;
|
add_header X-Served-By $host;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Forwarded-Scheme $scheme;
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
Reference in New Issue
Block a user