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

Add environment variables to toggle different blocks in Docker container, fix constant typo #37

Merged
merged 3 commits into from
Dec 3, 2023
Merged

Conversation

evanebb
Copy link
Contributor

@evanebb evanebb commented Dec 2, 2023

Related to #35.

This PR allows you to disable the 'Network', 'Looking Glass' and 'Speedtest' blocks through environment variables in the Docker container.
These have to be explicitly passed in order to disable these blocks, contrary to the custom block environment variable, which has to be explicitly passed to enable it. This is 1) to keep forward compatibility so these blocks won't suddenly be gone after someone updates their container without adding these environment variables and 2) most people would probably want to have these blocks enabled, so enabling them by default seems good.

EDIT: I've also added some robuster checking around the custom block constants, namely by only including the files if both the constants are defined and the passed files actually exist.

@evanebb evanebb mentioned this pull request Dec 2, 2023
@dqos
Copy link
Contributor

dqos commented Dec 3, 2023

Looks good to me, thank you for your contribution!

@dqos dqos merged commit 0a46136 into hybula:main Dec 3, 2023
This pull request was closed.
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