Skip to content

Commit

Permalink
Set N8N_RUNNERS_SERVER_ENABLED implicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Nov 25, 2024
1 parent efbc534 commit b7b4e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ export N8N_MAIN_URI=... # e.g. http://127.0.0.1:5678
export N8N_RUNNERS_N8N_URI=... # e.g. http://127.0.0.1:5679
export N8N_RUNNER_URI=... # e.g. http://127.0.0.1:5680
export N8N_RUNNERS_AUTH_TOKEN=... # i.e. same string as in step 4
export N8N_RUNNERS_SERVER_ENABLED=true

make run
```
Expand Down
5 changes: 2 additions & 3 deletions internal/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ type Config struct {
MainServerURI string
MainRunnerServerURI string
RunnerServerURI string
RunnerServerEnabled bool
IdleTimeout int
}

// FromEnv retrieves vars from the environment, validates their values, and
Expand Down Expand Up @@ -150,11 +148,12 @@ func FromEnv() (*Config, error) {
return nil, errors.Join(errs...)
}

os.Setenv(EnvVarRunnerServerEnabled, "true")

return &Config{
AuthToken: authToken,
MainServerURI: mainServerURI,
MainRunnerServerURI: mainRunnerServerURI,
RunnerServerURI: runnerServerURI,
RunnerServerEnabled: true,
}, nil
}

0 comments on commit b7b4e4a

Please sign in to comment.