mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
change paths and make quic be enabled sepperat
This commit is contained in:
@@ -467,7 +467,7 @@ const internalAccessList = {
|
||||
* @returns {String}
|
||||
*/
|
||||
getFilename: (list) => {
|
||||
return '/data/nginx/access/' + list.id;
|
||||
return '/data/etc/access/' + list.id;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@@ -36,7 +36,7 @@ const internalSetting = {
|
||||
if (row.id === 'default-site') {
|
||||
// write the html if we need to
|
||||
if (row.value === 'html') {
|
||||
fs.writeFileSync('/data/nginx/html/index.html', row.meta.html, {encoding: 'utf8'});
|
||||
fs.writeFileSync('/data/nginx/etc/index.html', row.meta.html, {encoding: 'utf8'});
|
||||
}
|
||||
|
||||
// Configure nginx
|
||||
|
@@ -16,7 +16,7 @@
|
||||
"express-fileupload": "1.4.0",
|
||||
"gravatar": "1.8.2",
|
||||
"jsonwebtoken": "9.0.0",
|
||||
"knex": "2.3.0",
|
||||
"knex": "2.4.0",
|
||||
"liquidjs": "9.43.0",
|
||||
"lodash": "4.17.21",
|
||||
"moment": "2.29.4",
|
||||
|
@@ -1,10 +1,10 @@
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
{% if certificate -%}
|
||||
{% if certificate %}
|
||||
listen 443 ssl{% if http2_support %} http2{% endif %};
|
||||
listen [::]:443 ssl{% if http2_support %} http2{% endif %};
|
||||
{% if http2_support -%}
|
||||
{% if hsts_subdomains %}
|
||||
listen 443 http3;
|
||||
listen [::]:443 http3;
|
||||
|
||||
|
@@ -45,7 +45,7 @@ server {
|
||||
{%- if value == "html" %}
|
||||
location / {
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
alias /data/nginx/html/;
|
||||
alias /data/etc/html/;
|
||||
}
|
||||
{%- endif %}
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ server {
|
||||
{% if access_list.items.length > 0 %}
|
||||
# Authorization
|
||||
auth_basic "Authorization required";
|
||||
auth_basic_user_file /data/nginx/access/{{ access_list_id }};
|
||||
auth_basic_user_file /data/etc/access/{{ access_list_id }};
|
||||
|
||||
{{ access_list.passauth }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user