Skip to content

feat(cli): add support for setting config path through env#1650

Merged
Eugeny merged 3 commits intowarp-tech:mainfrom
justinforlenza:cli-env-var-config
Jan 5, 2026
Merged

feat(cli): add support for setting config path through env#1650
Eugeny merged 3 commits intowarp-tech:mainfrom
justinforlenza:cli-env-var-config

Conversation

@justinforlenza
Copy link
Copy Markdown
Contributor

This PR allows for setting the --config cli argument via a environment variable.

The rationale behind this is in a docker environment the config is located in /data/warpgate.yaml instead of the cli default of /etc/warpgate.yaml. Meaning if you want to run any warpgate cli commands using docker exec if you do not provide the --config argument you get an error.

This simplifies docker mamagement by allowing admins to run commands like this:

docker exec my-container warpgate client-keys

Instead of:

docker exec my-container warpgate --config=/data/warpgate.yaml client-keys

@Eugeny
Copy link
Copy Markdown
Member

Eugeny commented Jan 5, 2026

Thanks! @all-contributors please add @justinforlenza for code

@Eugeny Eugeny merged commit abc0d2e into warp-tech:main Jan 5, 2026
14 checks passed
@allcontributors
Copy link
Copy Markdown
Contributor

@Eugeny

I've put up a pull request to add @justinforlenza! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants