modif setup
This commit is contained in:
parent
ecdafbe0ea
commit
a278cdf26f
@ -280,10 +280,11 @@ apxtri.runexpress = async (tribesdns, conf) => {
|
||||
regtxt += `|${d.replace(/\./g, "\\.")}`;
|
||||
});
|
||||
regtxt+=")$"
|
||||
// let cor = false;
|
||||
// let cor = false;whatwg-url
|
||||
const regorigin = new RegExp(regtxt);
|
||||
app.use((req, res, next) => {
|
||||
let cor=false
|
||||
//console.log(req.headers)
|
||||
if (req.headers.origin == undefined) {
|
||||
//used for mobile access
|
||||
cor = true;
|
||||
|
@ -67,9 +67,9 @@ router.get(
|
||||
"/updatelocaldbanonymous/:tribe/:appname/:pagename/:version",
|
||||
checkHeaders,
|
||||
(req, res) => {
|
||||
console.log("pass localstorage anonymous", req.session.header.xalias);
|
||||
req.session.header.xprofils = ["anonymous"];
|
||||
console.log(req.session.header.xprofils);
|
||||
//console.log("pass localstorage anonymous", req.session.header.xalias);
|
||||
//req.session.header.xprofils = ["anonymous"];
|
||||
//console.log(req.session.header);
|
||||
//ajouter une detection de changement
|
||||
const getlocal = Wwws.initlocaldata(
|
||||
req.params.tribe,
|
||||
|
@ -28,7 +28,7 @@ location /setup.sh {
|
||||
}
|
||||
location ~ ^/([^/]+)/setup.*\.tar\.gz$ {
|
||||
rewrite ^/([^/]+)/(setup.*\.tar\.gz)$ /$1/backups/$2 break;
|
||||
root /home/phil/apxtowns/testwall-ants/;
|
||||
root {{{townpath}}}/;
|
||||
}
|
||||
location ~* /objectimg/.*/img/ {
|
||||
rewrite /objectimg/(.*) /$1 break;
|
||||
@ -54,6 +54,9 @@ location /socket/ {
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
location = /apidoc {
|
||||
return 301 /apidoc/;
|
||||
}
|
||||
location /apidoc/ {
|
||||
root {{{townpath}}}/{{{tribeId}}}/objects/wwws/apidoc;
|
||||
index index.html;
|
||||
|
Loading…
Reference in New Issue
Block a user