ansible-role-outline-wiki/templates/env.outline.conf.j2

97 lines
3.5 KiB
Plaintext
Raw Normal View History

2022-10-05 12:53:35 +02:00
# Copy this file to .env, remove this comment and change the keys. For development
# with docker this should mostly work out of the box other than setting the Slack
# keys (for auth) and the SECRET_KEY.
#
# Please use `openssl rand -hex 32` to create SECRET_KEY
2022-12-07 11:04:33 +01:00
SECRET_KEY={{ outline_secret_key }}
UTILS_SECRET={{ outline_utils_secret }}
2022-10-05 12:53:35 +02:00
DEPLOYMENT={{ outline_deployment }}
2022-12-11 02:18:36 +01:00
{% if outline_db_schema == 'postgres' and outline_db_host == 'postgres' %}
DATABASE_URL=postgres://{{ outline_db_user }}:{{ outline_db_password }}@postgres:5432/{{ outline_db }}
{% else %}
2022-12-07 11:04:33 +01:00
DATABASE_URL={{ outline_db_schema }}://{{ outline_db_user }}:{{ outline_db_password }}@{{outline_db_host}}:{{ outline_db_port }}/{{ outline_db }}
2022-12-11 02:18:36 +01:00
{% endif %}
2022-12-07 11:04:33 +01:00
DATABASE_URL_TEST={{ outline_db_schema }}://{{ outline_db_user }}:{{ outline_db_password }}@{{outline_db_host}}:{{ outline_db_port }}/{{ outline_db }}_test
2022-10-05 12:53:35 +02:00
REDIS_URL=redis://redis:6379
# Must point to the publicly accessible URL for the installation
URL={{ outline_url }}
PORT=3000
2022-10-05 12:53:35 +02:00
# Optional. If using a Cloudfront distribution or similar the origin server
# should be set to the same as URL.
CDN_URL={{ outline_cdn_url }}
# enforce (auto redirect to) https in production, (optional) default is true.
# set to false if your SSL is terminated at a loadbalancer, for example
FORCE_HTTPS={{ outline_force_https }}
2022-10-05 12:53:35 +02:00
ENABLE_UPDATES={{ outline_enable_updates }}
DEBUG={{ outline_debug }}
2022-10-05 12:53:35 +02:00
{% if outline_slack_client_id %}
2022-10-05 12:53:35 +02:00
# Third party signin credentials (at least one is required)
SLACK_CLIENT_ID={{ outline_slack_client_id }}
SLACK_CLIENT_SECRET={{ outline_slack_client_secret }}
{% endif %}
2022-10-05 12:53:35 +02:00
# To configure Google auth, you'll need to create an OAuth Client ID at
# => https://console.cloud.google.com/apis/credentials
#
# When configuring the Client ID, add an Authorized redirect URI:
# https://<your Outline URL>/auth/google.callback
{% if outline_google_client_id %}
GOOGLE_CLIENT_ID={{ outline_google_client_id }}
GOOGLE_CLIENT_SECRET={{ outline_google_client_secret }}
2022-10-05 12:53:35 +02:00
# Comma separated list of domains to be allowed (optional)
# If not set, all Google apps domains are allowed by default
GOOGLE_ALLOWED_DOMAINS=
{% endif %}
2022-10-05 12:53:35 +02:00
# Third party credentials (optional)
SLACK_VERIFICATION_TOKEN=
SLACK_APP_ID=
SLACK_MESSAGE_ACTIONS=
2022-10-05 12:53:35 +02:00
GOOGLE_ANALYTICS_ID=
SENTRY_DSN=
# AWS credentials (optional in development)
2022-12-07 11:04:33 +01:00
AWS_ACCESS_KEY_ID={{ outline_aws_access_key_id }}
AWS_SECRET_ACCESS_KEY={{ outline_aws_secret_access_key }}
AWS_REGION={{ outline_aws_region }}
2022-12-08 18:33:59 +01:00
AWS_S3_UPLOAD_BUCKET_URL={{ outline_aws_s3_upload_bucket_url }}
2022-12-07 11:04:33 +01:00
AWS_S3_UPLOAD_BUCKET_NAME={{ outline_aws_s3_upload_bucket_name }}
AWS_S3_UPLOAD_MAX_SIZE={{ outline_aws_s3_upload_max_size }}
AWS_S3_FORCE_PATH_STYLE={{ outline_aws_s3_force_path_style }}
2022-10-05 12:53:35 +02:00
# uploaded s3 objects permission level, default is private
# set to "public-read" to allow public access
2022-12-07 11:04:33 +01:00
AWS_S3_ACL={{ outline_aws_s3_acl }}
2022-10-05 12:53:35 +02:00
2022-12-07 11:04:33 +01:00
{% if outline_smtp_host and outline_smtp_port %}
2022-10-05 12:53:35 +02:00
# Emails configuration (optional)
2022-12-07 11:04:33 +01:00
SMTP_HOST={{ outline_smtp_host }}
SMTP_PORT={{ outline_smtp_port }}
SMTP_USERNAME={{ outline_smtp_username }}
SMTP_PASSWORD={{ outline_smtp_password }}
SMTP_FROM_EMAIL={{ outline_smtp_from_email }}
SMTP_REPLY_EMAIL={{ outline_smtp_reply_email }}
{% endif %}
{% if outline_team_logo_url %}
2022-10-05 12:53:35 +02:00
# Custom logo that displays on the authentication screen, scaled to height: 60px
2022-12-07 11:04:33 +01:00
TEAM_LOGO={{ outline_team_logo_url }}
{% endif %}
2022-10-05 12:53:35 +02:00
# See translate.getoutline.com for a list of available language codes and their
# percentage translated.
2022-12-07 11:04:33 +01:00
DEFAULT_LANGUAGE={{ outline_language }}
2022-10-05 12:53:35 +02:00
{% if outline_db_ssl %}
PGSSLMODE={{ outline_db_ssl }}
{% endif %}