Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): specify server flags via environment #74

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

shouya
Copy link
Owner

@shouya shouya commented Mar 8, 2024

It's often more convenient to specify the server flags via environment
than overriding the default command line. This pull request adds the
ability to specify the server flags via environment.

Currently, the following environments are supported:

Variable Default value Description
RSS_FUNNEL_BIND 127.0.0.1:4080 The server bind address
RSS_FUNNEL_INSPECTOR_UI true Whether or not to serve the inspector UI
RSS_FUNNEL_WATCH false Whether or not to watch config file change and automatically reload
RSS_FUNNEL_CONFIG unspecified The location of the config file.

Note: if you specify the options both from environment and command
line, the command line options will take precedence.

@shouya shouya merged commit f0a0a09 into master Mar 8, 2024
2 checks passed
@shouya shouya deleted the cli-flags-from-environment-variables branch March 8, 2024 11:26
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.

1 participant