first commit

This commit is contained in:
Sergo
2023-07-29 21:10:00 +03:00
commit 27efd26d6c
49 changed files with 5490 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{
"port": {
"__name": "PORT",
"__format": "number"
},
"host": "HOSTNAME",
"authentication": {
"secret": "FEATHERS_SECRET"
}
}

16
config/default.json Normal file
View File

@@ -0,0 +1,16 @@
{
"host": "localhost",
"port": 3030,
"public": "./public/",
"origins": [
"http://localhost:3030"
],
"paginate": {
"default": 10,
"max": 50
},
"wildDuck": {
"url": "http://localhost",
"token": "aaaaa"
}
}

13
config/prod.js Normal file
View File

@@ -0,0 +1,13 @@
module.exports = {
clientUrl: process.env.CLIENT_URL,
oidc: {
gatewayUri: process.env.OIDC_GATEWAY_URI,
clientId: process.env.OIDC_CLIENT_ID,
clientSecret: process.env.OIDC_CLIENT_SECRET,
redirectUris: process.env.OIDC_REDIRECT_URIS
},
wildDuck: {
url: process.env.WILDDUCK_URL,
token: process.env.WILDDUCK_TOKEN
}
};

3
config/test.json Normal file
View File

@@ -0,0 +1,3 @@
{
"port": 8998
}