[Question] – How to specify a custom path to config.toml #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi team,
Thanks for the great project!
When I run hubproxy with Docker‑Compose or Docker‑Swarm I hit a problem:
The container always looks for the configuration file at /root/config.toml.
In many setups (CI pipelines, different host folders, several instances with separate configs) it would be useful to choose our own path for the file.
Suggestion:
Add an environment variable (for example HUBPROXY_CONFIG or CONFIG_PATH) or a command‑line flag (--config ) that lets us tell the program where the config.toml file lives.
Thanks for your time!
Config path that the program would use is currently hardcoded (
$WorkspaceDirectory/config.yaml):31f62fde35/src/config/config.go (L201)For you, there are 3 options:
31f62fde35/docker-compose.yml (L9)Do not concert about the config path inside the container
Deploy by systemd:
31f62fde35/hubproxy.service (L10)Change
WorkingDirectoryto elsewhere you want and put config.toml inside itModify source code
31f62fde35/src/config/config.go (L201)Modify config field inject chains (via environment variable and/or config file), consult LLM if needed
Then, manual or via CI to build as your wish