Settings reverse proxy (doesn't work)

This commit is contained in:
Isaac
2022-09-07 21:24:16 +01:00
parent 742dedd635
commit be0795cde0
9 changed files with 48 additions and 26 deletions

View File

@@ -2,7 +2,6 @@ require('dotenv').config();
const fs = require('fs-extra');
const { spawnSync } = require('child_process');
const providers = ['mysql', 'postgresql', 'sqlite'];
const provider = process.env.DB_PROVIDER;

View File

@@ -2,16 +2,16 @@ const { randomBytes } = require('crypto');
const fs = require('fs');
const env = {
API_BIND: 8080,
API_EXTERNAL: 'http://localhost:8080',
DB_CONNECTION_URL: '',
DB_PROVIDER: '', // don't default to sqlite, postinstall checks if empty
DISCORD_SECRET: '',
DISCORD_TOKEN: '',
ENCRYPTION_KEY: randomBytes(24).toString('hex'),
HTTP_BIND: 8080,
HTTP_EXTERNAL: 'http://localhost',
PORTAL: '',
PUBLIC_BOT: false,
SETTINGS_BIND: 80,
SETTINGS_BIND: 8888,
SUPER: '319467558166069248',
};