update project with new architecture

This commit is contained in:
2023-04-13 07:46:35 +02:00
parent d0a3b10cfe
commit 67a02c33a2
333 changed files with 3764 additions and 1254 deletions

26
asupsetup/config.mustache Executable file
View File

@@ -0,0 +1,26 @@
const path = require( 'path' );
const config = {
loglevel:"{{consoleloglevel}}",
linuxuser:"{{linuxuser}}",
druidid:"{{druidid}}",
dnsapxtrib:"{{subdomain}}.{{domain}}",
mainDir: __dirname,
tmp: path.join( __dirname, '/tmp' ),
public: path.join( __dirname, 'data/tribe/{{druidid}}/www/cdn' ),
//(@TODO ASUP mettre /cdn de apxtrib) public allow to serve on /public file into folder /public with or without login
archivefolder: path.join( __dirname, '/archive' ),
domain: path.join( __dirname, '/data/tribe' ),
porthttp:{{porthttp}} ,
jwtSecret: '{{jwtsecret}}',
saltRounds: 10,
languagesAvailable: [ {{#language}}'{{.}}',{{/language}} ],
exposedHeaders:[ 'xauth', 'xpaganid', 'xlang', 'xtribe', 'xworkon', 'xapp' ],
bodyparse: {
urlencoded: {
limit: '50mb',
extended: true
},
json: { limit: '500mb' }
}
};
module.exports = config;