mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
feat: add HTTP_INTERNAL
env variable
This commit is contained in:
parent
89b94bc5ab
commit
10eef10216
@ -20,6 +20,7 @@ const env = {
|
|||||||
ENCRYPTION_KEY: randomBytes(24).toString('hex'),
|
ENCRYPTION_KEY: randomBytes(24).toString('hex'),
|
||||||
HTTP_EXTERNAL: 'http://127.0.0.1:8169',
|
HTTP_EXTERNAL: 'http://127.0.0.1:8169',
|
||||||
HTTP_HOST: '0.0.0.0',
|
HTTP_HOST: '0.0.0.0',
|
||||||
|
HTTP_INTERNAL: '',
|
||||||
HTTP_PORT: 8169,
|
HTTP_PORT: 8169,
|
||||||
HTTP_TRUST_PROXY: false,
|
HTTP_TRUST_PROXY: false,
|
||||||
NODE_ENV: 'production', // not bot-specific
|
NODE_ENV: 'production', // not bot-specific
|
||||||
@ -37,4 +38,4 @@ if (!process.env.ENCRYPTION_KEY && !fs.existsSync('./.env')) {
|
|||||||
log(short('&r&0&!e WARNING &r &e&lkeep your environment variables safe, don\'t lose your encryption key or you will lose data'));
|
log(short('&r&0&!e WARNING &r &e&lkeep your environment variables safe, don\'t lose your encryption key or you will lose data'));
|
||||||
} else {
|
} else {
|
||||||
log('nothing to do');
|
log('nothing to do');
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ const { join } = require('path');
|
|||||||
const { files } = require('node-dir');
|
const { files } = require('node-dir');
|
||||||
const { PermissionsBitField } = require('discord.js');
|
const { PermissionsBitField } = require('discord.js');
|
||||||
|
|
||||||
process.env.ORIGIN = process.env.HTTP_EXTERNAL;
|
process.env.ORIGIN = process.env.HTTP_INTERNAL || process.env.HTTP_EXTERNAL;
|
||||||
|
|
||||||
module.exports = async client => {
|
module.exports = async client => {
|
||||||
// oauth2 plugin
|
// oauth2 plugin
|
||||||
|
Loading…
Reference in New Issue
Block a user