mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(core): Start listening to IPv6 addresses as well by default (#15810)
This commit is contained in:
committed by
GitHub
parent
0fdeba52bb
commit
9f44f40745
@@ -16,7 +16,7 @@ class HealthConfig {
|
|||||||
|
|
||||||
/** IP address for worker server to listen on. */
|
/** IP address for worker server to listen on. */
|
||||||
@Env('N8N_WORKER_SERVER_ADDRESS')
|
@Env('N8N_WORKER_SERVER_ADDRESS')
|
||||||
address: string = '0.0.0.0';
|
address: string = '::';
|
||||||
}
|
}
|
||||||
|
|
||||||
@Config
|
@Config
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ export class GlobalConfig {
|
|||||||
|
|
||||||
/** IP address n8n should listen on */
|
/** IP address n8n should listen on */
|
||||||
@Env('N8N_LISTEN_ADDRESS')
|
@Env('N8N_LISTEN_ADDRESS')
|
||||||
listen_address: string = '0.0.0.0';
|
listen_address: string = '::';
|
||||||
|
|
||||||
/** HTTP Protocol via which n8n can be reached */
|
/** HTTP Protocol via which n8n can be reached */
|
||||||
@Env('N8N_PROTOCOL', protocolSchema)
|
@Env('N8N_PROTOCOL', protocolSchema)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ describe('GlobalConfig', () => {
|
|||||||
path: '/',
|
path: '/',
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 5678,
|
port: 5678,
|
||||||
listen_address: '0.0.0.0',
|
listen_address: '::',
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
auth: {
|
auth: {
|
||||||
cookie: {
|
cookie: {
|
||||||
@@ -196,7 +196,7 @@ describe('GlobalConfig', () => {
|
|||||||
health: {
|
health: {
|
||||||
active: false,
|
active: false,
|
||||||
port: 5678,
|
port: 5678,
|
||||||
address: '0.0.0.0',
|
address: '::',
|
||||||
},
|
},
|
||||||
bull: {
|
bull: {
|
||||||
redis: {
|
redis: {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ describe('WorkerServer', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
globalConfig = mock<GlobalConfig>({
|
globalConfig = mock<GlobalConfig>({
|
||||||
queue: {
|
queue: {
|
||||||
health: { active: true, port: 5678, address: '0.0.0.0' },
|
health: { active: true, port: 5678, address: '::' },
|
||||||
},
|
},
|
||||||
credentials: {
|
credentials: {
|
||||||
overwrite: { endpoint: '' },
|
overwrite: { endpoint: '' },
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ describe('UserService', () => {
|
|||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
path: '/',
|
path: '/',
|
||||||
port: 5678,
|
port: 5678,
|
||||||
listen_address: '0.0.0.0',
|
listen_address: '::',
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
});
|
});
|
||||||
const urlService = new UrlService(globalConfig);
|
const urlService = new UrlService(globalConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user