Environment-Variable for self-hosted instances #539
patschi
started this conversation in
Anything Else
Replies: 1 comment
-
|
@patschi Spot on, I've been thinking about doing something like this as well. I will probably add it for the next release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it might be a good additional to implement a specific environment variable for self-hosted instances, to be able to do certain things differently. I think you, Plausible team, are using basically the same code 1:1 for your cloud instance and this could help for self-hosted instances.
To give an example:
Handling
CRON_ENABLED(issue Q: cron for self-hosted instances? #400)analytics/config/config.exs
Lines 102 to 109 in 039480a
In this case the
CRON_ENABLEDenvironment could be default totruefor self-hosted scenarios.Disable cronjob
trial_notification_emailsFor example
trial_notification_emails: As those emails are not really useful for self-hosted instances, this cronjob could be disabled when the self-hosted env variable is set.analytics/config/config.exs
Line 131 in 039480a
Disable cronjob
provision_ssl_certificatesanalytics/config/config.exs
Line 127 in 039480a
Branding
At certain places (emails, footer, etc) there's Plausible.io-related branding. While branding/credits are fine, those could be replaced to the admin's email address once self-hosted instance is in use.
Beta Was this translation helpful? Give feedback.
All reactions