mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix: Fix task runner default n8n uri and auth endpoint (no-changelog) (#11128)
This commit is contained in:
parent
c74bc10da5
commit
42c0733990
|
@ -11,7 +11,7 @@ export type AuthOpts = {
|
||||||
*/
|
*/
|
||||||
export async function authenticate(opts: AuthOpts) {
|
export async function authenticate(opts: AuthOpts) {
|
||||||
try {
|
try {
|
||||||
const authEndpoint = `http://${opts.n8nUri}/rest/runners/auth`;
|
const authEndpoint = `http://${opts.n8nUri}/runners/auth`;
|
||||||
const response = await fetch(authEndpoint, {
|
const response = await fetch(authEndpoint, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -23,7 +23,7 @@ function readAndParseConfig(): Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? 'localhost:5678',
|
n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? '127.0.0.1:5679',
|
||||||
authToken,
|
authToken,
|
||||||
grantToken,
|
grantToken,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue