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 the possibility to configure some settings using ENV-variables #59

Merged
merged 1 commit into from
May 22, 2017

Conversation

buren
Copy link
Contributor

@buren buren commented May 14, 2017

These constants can now be configured from ENV-variables (all of them still have default values):

  • PAYLOAD_INITIAL_TEXT
  • CRYPT_KEY
  • CRYPT_SALT
  • EXPIRE_AFTER_DAYS_DEFAULT
  • EXPIRE_AFTER_DAYS_MIN
  • EXPIRE_AFTER_DAYS_MAX
  • EXPIRE_AFTER_VIEWS_DEFAULT
  • EXPIRE_AFTER_VIEWS_MIN
  • EXPIRE_AFTER_VIEWS_MAX
  • DELETABLE_BY_VIEWER_PASSWORDS
  • DELETABLE_BY_VIEWER_DEFAULT

These constants can now be configured from ENV-variables (all of them still have default values):

PAYLOAD_INITIAL_TEXT
CRYPT_KEY
CRYPT_SALT
EXPIRE_AFTER_DAYS_DEFAULT
EXPIRE_AFTER_DAYS_MIN
EXPIRE_AFTER_DAYS_MAX
EXPIRE_AFTER_VIEWS_DEFAULT
EXPIRE_AFTER_VIEWS_MIN
EXPIRE_AFTER_VIEWS_MAX
DELETABLE_BY_VIEWER_PASSWORDS
DELETABLE_BY_VIEWER_DEFAULT
@pglombardo
Copy link
Owner

This is excellent @buren thanks for the PR! I'm traveling today/this week for a conference but will test this locally to validate soon and merge.

@pglombardo pglombardo merged commit ed1009b into pglombardo:master May 22, 2017
@pglombardo
Copy link
Owner

Looks great @buren. Thanks again!

@buren
Copy link
Contributor Author

buren commented May 22, 2017

Thank you @pglombardo 👍

@buren buren deleted the env-config branch May 22, 2017 22:07
@mr-biggles mr-biggles mentioned this pull request Jun 9, 2023
@pietro95 pietro95 mentioned this pull request May 22, 2024
11 tasks
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.

None yet

2 participants