Refator stunnel and docs; merge environment variables#1
Draft
envoyr wants to merge 1 commit into
Draft
Conversation
…env and docker environent variables Signed-off-by: Maurice Preuß <envoyr@froxlor.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request refactors the SSL termination, the documentation and how we handle environment variables.
SSL termination is disabled by default, but can be enabled if either FROXLOR_OCTANE_HTTPS or FROXLOR_FORCE_HTTPS is set to true.
The container rebuilds the .env from three sources:
.env.example.envFROXLOR_*Then it:
FROXLOR_prefixKEY=valuelines.envThe goal was to have an actual
.envfile, even though we modify it with the container environment variables.Testing:
.env.env.examplevalues are used as defaults.envvalues override.env.exampleFROXLOR_*environment variables override both.env.exampleand existing.envFROXLOR_*environment variables are ignoredFROXLOR_prefix is removed correctly.enventries are sortedFROXLOR_OCTANE_HTTPS=trueFROXLOR_FORCE_HTTPS=true