fix setup
This commit is contained in:
parent
dbb9d908a1
commit
2c03dda67d
@ -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)
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user