mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +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'),
|
||||
HTTP_EXTERNAL: 'http://127.0.0.1:8169',
|
||||
HTTP_HOST: '0.0.0.0',
|
||||
HTTP_INTERNAL: '',
|
||||
HTTP_PORT: 8169,
|
||||
HTTP_TRUST_PROXY: false,
|
||||
NODE_ENV: 'production', // not bot-specific
|
||||
|
@ -6,7 +6,7 @@ const { join } = require('path');
|
||||
const { files } = require('node-dir');
|
||||
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 => {
|
||||
// oauth2 plugin
|
||||
|
Loading…
Reference in New Issue
Block a user