diff --git a/apxtri/apxtri.js b/apxtri/apxtri.js index a131c23..5892846 100755 --- a/apxtri/apxtri.js +++ b/apxtri/apxtri.js @@ -131,7 +131,7 @@ apxtri.setup = async () => { "../adminapi/apxtri/setup/nginx.wwwscf", "utf8" ); - initadminapi.website=initadminapi.dns.join(" "); + initadminapi.website="adminapx" fs.outputFileSync( `../adminapi/nginx/adminapx.adminapi.conf`, Mustache.render(nginxapx, initadminapi) diff --git a/apxtri/setup/nginx.wwwscf b/apxtri/setup/nginx.wwwscf index 143167e..a176f9b 100644 --- a/apxtri/setup/nginx.wwwscf +++ b/apxtri/setup/nginx.wwwscf @@ -1,5 +1,5 @@ server { -server_name {{{website}}}; +server_name {{#dns}}. {{/dns}}; add_header 'Access-Control-Allow-Origin' '*' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;