Environment Variables
The .env Fileâ
You can set the correct values as per the following options. Once you set the values, you should rename the file to .env
before you start the server.
Configure HTTPS (SSL)â
Due to Apple's mandatory requirement of mandatory HTTPS for online deployment and download services, d ownloading applications will be forced to go HTTPS protocol when redeploying.
If the deployment is a standalone service on a single machine, it is recommended to enable Let's Encrypt free SSL certificate:
ZEALOT_CERT_EMAIL=zealot@example.com
The following self-signed certificate file name, can not be set at the same time
If the deployed machine can only use self-signed certificates, they need to be configured, but note that iOS downloads require the iOS device to authorize the self-signed certificate before the download and installation is allowed. (Not recommended)
ZEALOT_CERT=zealot.example.com.pem
ZEALOT_CERT_KEY=zealot.example.com-key.pem
Configure URL (Domain)â
Must be configured otherwise downloaded applications and some static resources will not be accessed correctly
# No need http:// or https://
ZEALOT_DOMAIN=zealot.example.com
Database configurationâ
If you have reusable postgres services, you can also customize the configuration to use them instead of using the services configured by default with docker-compose.
Postgresâ
ZEALOT_POSTGRES_HOST=127.0.0.1
ZEALOT_POSTGRES_PORT=5432
ZEALOT_POSTGRES_USERNAME=postgres
ZEALOT_POSTGRES_PASSWORD=ze@l0t
ZEALOT_POSTGRES_DB_NAME=zealot
Redisâ
Version 5.3.0 is not dependent on redis. If you have configured it before,
please consider deleting the REDIS_URL
environment variable, but not deleting it will not affect the use.
Configure default languageâ
Packs | Value |
---|---|
zh-CN | Simplified Chinese (default) |
en | English |
DEFAULT_LOCALE=en
Configure default appearanceâ
Appearance | Value |
---|---|
light | Light mode(default) |
dark | Dark mode |
auto | System auto |
ZEALOT_APPEARANCE=dark
Configure default Administerâ
The default does not configure the following will also generate the following account and password as an account with administrator privileges, it is recommended to change the password again after configuration.
ZEALOT_ADMIN_EMAIL=admin@zealot.com
ZEALOT_ADMIN_PASSWORD=ze@l0t
Configure emailsâ
Currently, only smtp
is supported to configure email notification service.
Email notification mainly affects are user registration, sending activation emails and
changing password service, but it does not affect the use if it is not turned on.
# SMTP settings
SMTP_DOMAIN=zealot.example.com
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=you@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_AUTH_METHOD=plain
SMTP_ENABLE_STARTTLS=true
# Sender and email address by default
ACTION_MAILER_DEFAULT_FROM=notification@zealot.com
ACTION_MAILER_DEFAULT_TO=noreply-to@zealot.com
Google blocks sign-ins from apps it deems less secure. You can change your Gmail settings here to allow the attempts. If your Gmail account has 2-factor authentication enabled, then you will need to set an app password and use that instead of your regular password.
Switch servicesâ
Enable new user registrationâ
After closing the registration, the administrator can add users manually through the user management in the administration panel.
# Open registration
ZEALOT_REGISTER_ENABLED=true
# Close registration
ZEALOT_REGISTER_ENABLED=false
Enable guest modeâ
Enable the visitor mode to allow the application to view, download and install, it is recommended that the company internal reliance on permissions is not high condition to use, specific permission comparison can see here for details
# Guest mode is ON
ZEALOT_GUEST_MODE=true
# Guest mode is OFF
ZEALOT_GUEST_MODE=false
Configure analyticsâ
Google Analyticsâ
Google Analytics is a website analysis service provided by Google. It only supports Universal Analytics, not GA4.
GOOGLE_ANALYTICS_ID=UA-12345678-9
Umamiâ
Umami is an open-source website analytics tool that can be self-hosted or used with the official service, which is enabled by default when UMAMI_SCRIPT_URL
is not set.
UMAMI_SCRIPT_URL=https://analytics.us.umami.is/script.js
UMAMI_WEBSITE_ID=12345678-9
Clarityâ
Google Analytics is a website analysis service provided by Microsoft.
CLARITY_ANALYTICS_ID=12345678-9