File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ const env = {
20
20
ENCRYPTION_KEY : randomBytes ( 24 ) . toString ( 'hex' ) ,
21
21
HTTP_EXTERNAL : 'http://127.0.0.1:8169' ,
22
22
HTTP_HOST : '0.0.0.0' ,
23
+ HTTP_INTERNAL : '' ,
23
24
HTTP_PORT : 8169 ,
24
25
HTTP_TRUST_PROXY : false ,
25
26
NODE_ENV : 'production' , // not bot-specific
@@ -37,4 +38,4 @@ if (!process.env.ENCRYPTION_KEY && !fs.existsSync('./.env')) {
37
38
log ( short ( '&r&0&!e WARNING &r &e&lkeep your environment variables safe, don\'t lose your encryption key or you will lose data' ) ) ;
38
39
} else {
39
40
log ( 'nothing to do' ) ;
40
- }
41
+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const { join } = require('path');
6
6
const { files } = require ( 'node-dir' ) ;
7
7
const { PermissionsBitField } = require ( 'discord.js' ) ;
8
8
9
- process . env . ORIGIN = process . env . HTTP_EXTERNAL ;
9
+ process . env . ORIGIN = process . env . HTTP_INTERNAL || process . env . HTTP_EXTERNAL ;
10
10
11
11
module . exports = async client => {
12
12
// oauth2 plugin
You can’t perform that action at this time.
0 commit comments