-
Notifications
You must be signed in to change notification settings - Fork 146
Conditionally set PROXY_PROTOCOL and allow for setting collation of DB #489
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
Conversation
DB_APPENDIX allows appending the collation used for the DB. See Mailu/Mailu#3701
Signed-off-by: Github actions <[email protected]>
DB_APPENDIX allows appending the collation used for the DB. See Mailu/Mailu#3701
Signed-off-by: Github actions <[email protected]>
# Conflicts: # charts/mailu/README.md
This allows for PROXY_PROTOCOL to be defined manually with extraEnvVars for the front pod
|
@Grennith Can you rebase your change to the current master? That should fix the CI tests |
|
@promasu not sure why the linter is complaining about a missing README update tbh. I did add an entry for appendix accordingly. See https://github.com/Mailu/helm-charts/pull/489/files#diff-3e8fc6668e30f58c499d4d7cd36004d6937cbc884ce7b7af654377a818afd8b3R230 (line 230 of the chart readme). |
|
@Grennith Did you manually add it or use the pre-commit-hook? The formatting might be off or smth |
|
@promasu yeah I did not set up pre-commit since I reset my notebook. Linter is happy now. Thanks! |
DrPsychick
left a comment
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.
just formatting, thank you for your contribution!
This PR serves two purposes for which the upstream Mailu repo offers flexibility and support by now
PROXY_PROTOCOLis currently always set by theenvvars-configmap.yaml. If an externalService is not configured, it is empty. However, this breaks the possibility to use Traefik or ingress-nginx to forward TCP traffic to the front service rather than exposing the ports directly. See Proxy Protocol support #264 (comment)DB_APPENDIXto the upstream Mailu repo (see Allow setting collation via env variable and add uvloop Mailu#3729) since the collation of my MariaDB deployment apparently was not accepted anymore with regards to the used collation for the same reason as others have encountered it, see Admin container fails to connect to external MariaDB database Mailu#3449. WithDB_APPENDIX, the sqlalchemy URI can be expanded in case an externalDatabase is used and the collation is not supported for example. For this purpose,.Values.externalDatabase.appendixcan be set. For example,?collation=utf8mb4_unicode_ciworks as a value - further options are also possible as per sqlalchemy