2020-05-02 21:25:37 +08:00
|
|
|
# This file shows all of the environment variables you can
|
|
|
|
# set to configure Shynet, as well as information about their
|
|
|
|
# effects. Make a copy of this file to configure your deployment.
|
|
|
|
|
|
|
|
# Database settings (PostgreSQL)
|
|
|
|
DB_NAME=shynet_db
|
|
|
|
DB_USER=shynet_db_user
|
|
|
|
DB_PASSWORD=shynet_db_user_password
|
|
|
|
DB_HOST=db
|
|
|
|
DB_PORT=5432
|
|
|
|
|
|
|
|
# Email settings (optional)
|
|
|
|
EMAIL_HOST_USER=example
|
|
|
|
EMAIL_HOST_PASSWORD=example_password
|
|
|
|
EMAIL_HOST=smtp.example.com
|
2020-06-02 05:41:39 +08:00
|
|
|
EMAIL_PORT=465
|
2020-08-19 11:34:20 +08:00
|
|
|
EMAIL_USE_SSL=True
|
|
|
|
# Comment out EMAIL_USE_SSL & uncomment EMAIL_USE_TLS if your SMTP server uses TLS.
|
|
|
|
# EMAIL_USE_TLS=True
|
|
|
|
SERVER_EMAIL=Shynet <noreply@shynet.example.com>
|
2020-05-02 21:25:37 +08:00
|
|
|
|
|
|
|
# General Django settings
|
|
|
|
DJANGO_SECRET_KEY=random_string
|
|
|
|
|
|
|
|
# For better security, set this to your deployment's domain. Comma separated.
|
|
|
|
ALLOWED_HOSTS=*
|
|
|
|
|
|
|
|
# Set to True (capitalized) if you want people to be able to sign up for your Shynet instance (not recommended)
|
2020-06-19 03:15:10 +08:00
|
|
|
ACCOUNT_SIGNUPS_ENABLED=False
|
2020-05-02 21:25:37 +08:00
|
|
|
|
2020-05-29 06:01:22 +08:00
|
|
|
# Should user email addresses be verified? Only set this to `required` if you've setup the email settings and allow
|
|
|
|
# public sign-ups; otherwise, it's unnecessary.
|
|
|
|
ACCOUNT_EMAIL_VERIFICATION=none
|
|
|
|
|
2020-05-02 21:25:37 +08:00
|
|
|
# The timezone of the admin panel. Affects how dates are displayed.
|
|
|
|
TIME_ZONE=America/New_York
|
|
|
|
|
|
|
|
# Set to "False" if you will not be serving content over HTTPS
|
|
|
|
SCRIPT_USE_HTTPS=True
|
|
|
|
|
|
|
|
# How frequently should the monitoring script "phone home" (in ms)?
|
|
|
|
SCRIPT_HEARTBEAT_FREQUENCY=5000
|
|
|
|
|
2020-05-03 00:16:57 +08:00
|
|
|
# How much time can elapse between requests from the same user before a new
|
|
|
|
# session is created, in seconds?
|
|
|
|
SESSION_MEMORY_TIMEOUT=1800
|
|
|
|
|
2020-05-02 21:25:37 +08:00
|
|
|
# Should only superusers (admins) be able to create services? This is helpful
|
|
|
|
# when you'd like to invite others to your Shynet instance but don't want
|
|
|
|
# them to be able to create services of their own.
|
|
|
|
ONLY_SUPERUSERS_CREATE=True
|
|
|
|
|
2020-05-03 00:35:47 +08:00
|
|
|
# Whether to perform checks and setup at startup, including applying unapplied
|
|
|
|
# migrations. For most setups, the recommended value is True. Defaults to True.
|
|
|
|
# Will skip only if value is False.
|
2020-05-02 23:00:40 +08:00
|
|
|
PERFORM_CHECKS_AND_SETUP=True
|
|
|
|
|
2020-05-29 05:40:43 +08:00
|
|
|
# The port that Shynet should bind to. Don't set this if you're deploying on Heroku.
|
|
|
|
PORT=8080
|
2020-05-02 23:00:40 +08:00
|
|
|
|
2020-05-05 02:20:34 +08:00
|
|
|
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
|
2020-05-02 23:00:40 +08:00
|
|
|
# Don't uncomment these unless you know what you are doing!
|
2020-05-05 02:20:34 +08:00
|
|
|
# NUM_WORKERS=1
|
|
|
|
# Make sure you set a REDIS_CACHE_LOCATION if you have more than one frontend worker/instance.
|
2020-06-19 03:15:10 +08:00
|
|
|
# REDIS_CACHE_LOCATION=redis://redis.default.svc.cluster.local/0
|
2020-05-03 07:43:18 +08:00
|
|
|
# If CELERY_BROKER_URL is set, make sure CELERY_TASK_ALWAYS_EAGER is False and
|
|
|
|
# that you have a separate queue consumer running somewhere via `celeryworker.sh`.
|
|
|
|
# CELERY_TASK_ALWAYS_EAGER=False
|
2020-06-19 03:15:10 +08:00
|
|
|
# CELERY_BROKER_URL=redis://redis.default.svc.cluster.local/1
|