Make Decidim fully configurable via ENV vars#8725
Merged
andreslucena merged 55 commits intodecidim:developfrom Feb 3, 2022
Merged
Make Decidim fully configurable via ENV vars#8725andreslucena merged 55 commits intodecidim:developfrom
andreslucena merged 55 commits intodecidim:developfrom
Conversation
Contributor
Author
|
@andreslucena tests passing, should I remove the references to platoniq? or anything else we should discuss on this? |
andreslucena
reviewed
Feb 3, 2022
Contributor
Author
|
@andreslucena this is ready. 2 failed tests in the generator as expected (needs to be merged to pass) |
16 tasks
eliegaboriau
pushed a commit
to eliegaboriau/decidim
that referenced
this pull request
Feb 21, 2022
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
27 tasks
12 tasks
This was referenced Jun 1, 2023
This was referenced Jun 12, 2023
This was referenced Aug 1, 2023
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.
🎩 What? Why?
This PR will improve the way the default application is created via the decidim generator.
The goal is to set a full-featured application ready to run and configurable, at least with the default adaptations (such as the map provider), entirely via ENV variables.
This changes will make the default Decidim application fully compliant with the 12 Factor principles and will facilitate the later introduction of better scripts or containers fully prepared to easily deploy Decidim with minimal customization.
Notes
Marked with ⛔ are configuration options that require additional code efforts to make it work (such as create a service class). We will NOT set up env vars for these options at the moment. In the future, if some default providers are added we might add these as env vars options as well.
Changes:
Current ENVS:
OMNIAUTH_FACEBOOK_APP_ID(if defined enables login button)OMNIAUTH_FACEBOOK_APP_SECRETOMNIAUTH_TWITTER_API_KEY(if defined enables login button)OMNIAUTH_TWITTER_API_SECRETOMNIAUTH_GOOGLE_CLIENT_ID(if defined enables login button)OMNIAUTH_GOOGLE_CLIENT_SECRETMAPS_PROVIDERMAPS_API_KEYMAPS_DYNAMIC_PROVIDERMAPS_STATIC_PROVIDERMAPS_STATIC_API_KEYMAPS_DYNAMIC_API_KEYMAPS_DYNAMIC_URLMAPS_STATIC_URLMAPS_ATTRIBUTIONMAPS_EXTRA_VARSMAPS_GEOCODING_HOSTETHERPAD_SERVERETHERPAD_API_KEYETHERPAD_API_VERSION(defaults to1.2.1)SECRET_KEY_BASESMTP_USERNAMESMTP_PASSWORDSMTP_ADDRESSSMTP_DOMAINSMTP_PORT(default:587)SMTP_STARTTLS_AUTO(default:auto)SMTP_AUTHENTICATIONBULLETIN_BOARD_SERVERBULLETIN_BOARD_PUBLIC_KEYBULLETIN_BOARD_API_KEYAUTHORITY_NAMEAUTHORITY_PRIVATE_KEYELECTIONS_SCHEME_NAME(default:electionguard)ELECTIONS_NUMBER_OF_TRUSTEESELECTIONS_QUORUMDECIDIM_APPLICATION_NAME(defaultMy Application Name')DECIDIM_MAILER_SENDER(default:change-me@example.org)DECIDIM_AVAILABLE_LOCALES(default:en,ca,es)DECIDIM_DEFAULT_LOCALE(default:en)DECIDIM_FORCE_SSL(defaultauto)DECIDIM_ENABLE_HTML_HEADER_SNIPPETSDECIDIM_CURRENCY_UNIT(default€)DECIDIM_IMAGE_UPLOADER_QUALITY(default80)DECIDIM_MAX_REPORTS_BEFORE_HIDING(default3)DECIDIM_TRACK_NEWSLETTER_LINKS(defaulttrue)DECIDIM_DATA_PORTABILITY_EXPIRY_TIME(default7)DECIDIM_THROTTLING_MAX_REQUESTS(default100)DECIDIM_THROTTLING_PERIOD(default1)DECIDIM_UNCONFIRMED_ACCESS_FOR(default2)DECIDIM_SYSTEM_ACCESSLIST_IPSDECIDIM_BASE_UPLOADS_PATHDECIDIM_DEFAULT_CSV_COL_SEP(default;)DECIDIM_CORS_ENABLED(defaultfalse)DECIDIM_MAXIMUM_ATTACHMENT_SIZE(default10)DECIDIM_MAXIMUM_AVATAR_SIZE(default5)DECIDIM_CONSENT_COOKIE_NAME(defaultdecidim-cc)DECIDIM_EXPIRE_SESSION_AFTER(default30)DECIDIM_ENABLE_REMEMBER_ME(defaulttrue)DECIDIM_SESSION_TIMEOUT_INTERVAL(default10)DECIDIM_FOLLOW_HTTP_X_FORWARDED_HOST(defaultfalse)DECIDIM_MAXIMUM_CONVERSATION_MESSAGE_LENGTH(default1000)DECIDIM_PASSWORD_BLACKLISTDECIDIM_ALLOW_OPEN_REDIRECTS(defaultfalse)RAILS_LOG_LEVELRAILS_ASSET_HOSTVAPID_PUBLIC_KEYVAPID_PRIVATE_KEY📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots
Please add screenshots of the changes you're proposing
