mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-26 09:02:27 +00:00
Compare commits
21 Commits
ca79f19506
...
84030525c4
Author | SHA1 | Date | |
---|---|---|---|
|
84030525c4 | ||
|
79d28f03d0 | ||
|
df48b835c4 | ||
|
8a1557154a | ||
|
a6af5ec2c7 | ||
|
14d7c35fd7 | ||
|
cfcf78aaee | ||
|
4cb39fe332 | ||
|
1a983651a5 | ||
|
145fe2d24f | ||
|
5dbb0b921e | ||
|
700d908abd | ||
|
7f2552d77f | ||
|
bbeb4f5a60 | ||
|
c166f6b41f | ||
|
05831fcd44 | ||
|
dec0ff31eb | ||
|
4ebfb4247c | ||
|
75c2f73796 | ||
|
fb1e4bd46c | ||
|
f00fe275ca |
@ -234,6 +234,19 @@ 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,7 +12,11 @@ Model.knex(db);
|
|||||||
|
|
||||||
const boolFields = [
|
const boolFields = [
|
||||||
'is_deleted',
|
'is_deleted',
|
||||||
|
'ssl_forced',
|
||||||
|
'http2_support',
|
||||||
'enabled',
|
'enabled',
|
||||||
|
'hsts_enabled',
|
||||||
|
'hsts_subdomains',
|
||||||
];
|
];
|
||||||
|
|
||||||
class DeadHost extends Model {
|
class DeadHost extends Model {
|
||||||
|
@ -8,8 +8,8 @@ const now = require('./now_helper');
|
|||||||
Model.knex(db);
|
Model.knex(db);
|
||||||
|
|
||||||
const boolFields = [
|
const boolFields = [
|
||||||
'enabled',
|
|
||||||
'is_deleted',
|
'is_deleted',
|
||||||
|
'enabled',
|
||||||
'tcp_forwarding',
|
'tcp_forwarding',
|
||||||
'udp_forwarding',
|
'udp_forwarding',
|
||||||
];
|
];
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
"enabled",
|
"enabled",
|
||||||
"locations",
|
"locations",
|
||||||
"hsts_enabled",
|
"hsts_enabled",
|
||||||
"hsts_subdomains",
|
"hsts_subdomains"
|
||||||
"certificate"
|
|
||||||
],
|
],
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,6 +9,15 @@
|
|||||||
"url": "http://127.0.0.1:81/api"
|
"url": "http://127.0.0.1:81/api"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"components": {
|
||||||
|
"securitySchemes": {
|
||||||
|
"bearerAuth": {
|
||||||
|
"type": "http",
|
||||||
|
"scheme": "bearer",
|
||||||
|
"bearerFormat": "JWT"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"paths": {
|
"paths": {
|
||||||
"/": {
|
"/": {
|
||||||
"get": {
|
"get": {
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
#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 $host;
|
proxy_set_header Host $http_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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user