ansible-role-docker_loomio/templates/env

154 lines
4.9 KiB
Plaintext

# this is the hostname of your app eg: loomio.org
CANONICAL_HOST={{ docker_loomio_fqdn }}
# the human name of the app (Default Loomio)
SITE_NAME={{ docker_loomio_name }}
# reply-to in email notifications
REPLY_HOSTNAME={{ docker_loomio_reply_to }}
# channels
CHANNELS_URI=wss://{{ docker_loomio_fqdn }}
# uncomment this if you want a default subdomain of www (eg: www.loomio.org)
# DEFAULT_SUBDOMAIN=www
# smtp settings
SUPPORT_EMAIL={{ docker_loomio_reply_to }}
SMTP_AUTH=LOGIN
SMTP_DOMAIN={{ docker_loomio_fqdn }}
SMTP_SERVER={{ docker_loomio_smtp_server }}
SMTP_PORT={{ docker_loomio_smtp_port }}
SMTP_USERNAME={{ docker_loomio_smtp_username }}
SMTP_PASSWORD={{ docker_loomio_smtp_password }}
#SMTP_USE_SSL=1
# to disable SSL comment out line rather than changing to 0
NOTIFICATIONS_EMAIL_ADDRESS={{ docker_loomio_reply_to }}
# helper bot is the account which welcomes people to their groups.
HELPER_BOT_EMAIL={{ docker_loomio_reply_to }}
RAILS_ENV=production
# Number of webserver processes and threads
# threads are per worker. See https://github.com/puma/puma
PUMA_WORKERS=2
MIN_THREADS=12
MAX_THREADS=12
# Force all connections to be https
FORCE_SSL=1
# Enable rate limiting on group creation, other POST actions
USE_RACK_ATTACK=1
RACK_ATTACK_RATE_MULTPLIER=5
RACK_ATTACK_TIME_MULTPLIER=1
# Postgres
#POSTGRES_PASSWORD={{ docker_loomio_db_password }}
#POSTGRES_DB={{ docker_loomio_db_name }}
#POSTGRES_USER={{ docker_loomio_db_user }}
DATABASE_URL=postgresql://{{ docker_loomio_db_user }}:{{ docker_loomio_db_password }}@db/{{ docker_loomio_db_name }}
# Redis URL
REDIS_URL=redis://redis:6379/0
# attachment storage service
# local will keep attachments on the server's disk under ./storage
# for cloud storage (recommended) try amazon, digitalocean or s3_compatible
ACTIVE_STORAGE_SERVICE=local
# stoage.yml for reference
# amazon:
# service: S3
# access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
# secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
# bucket: <%= ENV['AWS_BUCKET'] %>
# region: <%= ENV['AWS_REGION'] %>
#
# digitalocean:
# service: S3
# endpoint: <%= ENV['DO_ENDPOINT'] %>
# access_key_id: <%= ENV['DO_ACCESS_KEY_ID'] %>
# secret_access_key: <%= ENV['DO_SECRET_ACCESS_KEY'] %>
# bucket: <%= ENV['DO_BUCKET'] %>
# region: ignored
#
# s3_compatible:
# service: S3
# endpoint: <%= ENV.fetch('STORAGE_ENDPOINT', '') %>
# access_key_id: <%= ENV.fetch('STORAGE_ACCESS_KEY_ID', '') %>
# secret_access_key: <%= ENV.fetch('STORAGE_SECRET_ACCESS_KEY', '') %>
# region: <%= ENV.fetch('STORAGE_REGION', '') %>
# bucket: <%= ENV.fetch('STORAGE_BUCKET_NAME', '') %>
# force_path_style: <%= ENV.fetch('STORAGE_FORCE_PATH_STYLE', false) %>
# Send catch up email (missed yesterday) weekly
# EMAIL_CATCH_UP_WEEKLY=1
# subscribe on participation default for new users
# uncomment this to change "subscribe on participation" to be false for new users
# EMAIL_ON_PARTICIPATION_DEFAULT_FALSE=1
# Uncomment these to disable features
# FEATURES_DISABLE_CREATE_USER=1 # users must be invited
{% if docker_loomio_features_disable_create_user is true %}
FEATURES_DISABLE_CREATE_USER=1
{% endif %}
# FEATURES_DISABLE_CREATE_GROUP=1 # users cannot create groups
{% if docker_loomio_features_disable_create_group is true %}
FEATURES_DISABLE_CREATE_GROUP=1
{% endif %}
# FEATURES_DISABLE_PUBLIC_GROUPS=1 # disable /explore
# FEATURES_DISABLE_HELP_LINK=1 # disable the help link
# MAX_PENDING_INVITATIONS=100 # maximum unaccepted invitations a group have have
# FEATURES_VOTE_REACTIONS=1 # allow reactions to votes
# Enable search engines to index public content
# ALLOW_ROBOTS=1
# SAML SSO
# SAML_APP_KEY=1 # just a flag, keep value as 1
# SAML_IDP_METADATA_URL=https://saml-metadata-url-provided-by-your-SSO-provider.com/12356
# Sentry DSN
# SENTRY_PUBLIC_DSN=https://1234567890@sentry.io/123
# monitoring with Posthog
# POSTHOG_HOST=https://posthog.example.com
# POSTHOG_KEY=phc_1234567890
# Disable login via email (usually when you have enabled SSO of some kind)
# FEATURES_DISABLE_EMAIL_LOGIN=1
# oauth providers, to let your users login using external accounts
# FACEBOOK_APP_KEY=REPLACE
# FACEBOOK_APP_SECRET=REPLACE
# TWITTER_APP_KEY=REPLACE
# TWITTER_APP_SECRET=REPLACE
# GOOGLE_APP_KEY=REPLACE
# GOOGLE_APP_SECRET=REPLACE
# Theme images
# images should be a multiple of 32px tall.
# THEME_ICON_SRC=/files/icon.png
# THEME_APP_LOGO_SRC=/files/logo.svg
# THEME_EMAIL_HEADER_LOGO_SRC=/files/logo_128h.png
# THEME_EMAIL_FOOTER_LOGO_SRC=/files/logo_64h.png
# used in emails. use rgb or hsl values, not hex
# THEME_PRIMARY_COLOR=rgb(255,167,38)
# THEME_ACCENT_COLOR=rgb(0,188,212)
# THEME_TEXT_ON_PRIMARY_COLOR=rgb(255,255,255)
# THEME_TEXT_ON_ACCENT_COLOR=rgb(255,255,255)
# tell clients to reload when the server is upgraded
LOOMIO_SYSTEM_RELOAD=1
SECRET_KEY_BASE={{ docker_loomio_secret_key_base }}
DEVISE_SECRET={{ docker_loomio_devise_secret }}
SECRET_COOKIE_TOKEN={{ docker_loomio_secret_cookie_token }}