fix setup

This commit is contained in:
philc 2024-11-02 14:49:31 +01:00
parent dbb9d908a1
commit 2c03dda67d
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ apxtri.setup = async () => {
"../adminapi/apxtri/setup/nginx.wwwscf", "../adminapi/apxtri/setup/nginx.wwwscf",
"utf8" "utf8"
); );
initadminapi.website=initadminapi.dns.join(" "); initadminapi.website="adminapx"
fs.outputFileSync( fs.outputFileSync(
`../adminapi/nginx/adminapx.adminapi.conf`, `../adminapi/nginx/adminapx.adminapi.conf`,
Mustache.render(nginxapx, initadminapi) Mustache.render(nginxapx, initadminapi)

View File

@ -1,5 +1,5 @@
server { server {
server_name {{{website}}}; server_name {{#dns}}. {{/dns}};
add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;