fix: Fix task runner default n8n uri and auth endpoint (no-changelog) (#11128)

This commit is contained in:
Tomi Turtiainen 2024-10-07 13:28:33 +03:00 committed by GitHub
parent c74bc10da5
commit 42c0733990
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ export type AuthOpts = {
*/
export async function authenticate(opts: AuthOpts) {
try {
const authEndpoint = `http://${opts.n8nUri}/rest/runners/auth`;
const authEndpoint = `http://${opts.n8nUri}/runners/auth`;
const response = await fetch(authEndpoint, {
method: 'POST',
headers: {

View file

@ -23,7 +23,7 @@ function readAndParseConfig(): Config {
}
return {
n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? 'localhost:5678',
n8nUri: process.env.N8N_RUNNERS_N8N_URI ?? '127.0.0.1:5679',
authToken,
grantToken,
};