change paths and make quic be enabled sepperat

This commit is contained in:
Zoey
2023-01-06 17:37:47 +01:00
parent c3f5d93acb
commit 5a89e9e8e8
13 changed files with 50 additions and 42 deletions

View File

@@ -467,7 +467,7 @@ const internalAccessList = {
* @returns {String}
*/
getFilename: (list) => {
return '/data/nginx/access/' + list.id;
return '/data/etc/access/' + list.id;
},
/**

View File

@@ -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

View File

@@ -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",

View File

@@ -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;

View File

@@ -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 %}
}

View File

@@ -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 %}