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
chore: Refactor setup-stack.sh
case SSL_TYPE=letsencrypt
#2278
Merged
polarathene
merged 10 commits into
docker-mailserver:master
from
polarathene:chore/refactor-ssltype-letsencrypt
Nov 2, 2021
Merged
chore: Refactor setup-stack.sh
case SSL_TYPE=letsencrypt
#2278
polarathene
merged 10 commits into
docker-mailserver:master
from
polarathene:chore/refactor-ssltype-letsencrypt
Nov 2, 2021
Conversation
This file contains 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
- Don't attempt to extract for `SSL_DOMAIN` if the value is empty. - Added `EXTRACTED_DOMAIN` and error + debug log output for better troubleshooting.
- Removed some unnecessary nesting. - Correct handling for `SSL_DOMAIN`. - Less repetitive error message for `LETSENCRYPT_DOMAIN`. - Added use of panics where appropriate (kept `return 1` so failures still exit functionality early).
Correct the indentation mistake spotted by CI lint job.
georglauterbach
previously approved these changes
Nov 1, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼
georglauterbach
added
area/scripts
kind/improvement
Improve an existing feature, configuration file or the documentation
labels
Nov 1, 2021
Please label your PRs to make it more obvious what they are about even when not having them opened :) |
casperklein
requested changes
Nov 1, 2021
Co-authored-by: Casper <casperklein@users.noreply.github.com>
Oh sure! Sorry I never thought about that 😅 |
georglauterbach
approved these changes
Nov 2, 2021
casperklein
approved these changes
Nov 2, 2021
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Description
This has been extracted from #2245 as it does not need to be part of that PR.
To function correctly, it depends on a
helper-function.sh
method added in #2274 , tests will pass once that is merged.Mostly cleans up the code and documents it better, although there are some minor fixes for handling
SSL_DOMAIN
ENV and additional logging added for spotting issues related to it in future when troubleshooting.Commits are scoped with context messages for easing review if necessary. Overview of changes:
Traefik specific:
SSL_DOMAIN
must not be empty when attempting to extract.SSL_TYPE=letsencrypt
case:SSL_DOMAIN
.LETSENCRYPT_DOMAIN
.return 1
so failures still exit functionality early).Type of change
Checklist: