59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
# Service dependencies
|
|
REDIS_URL=<%= @redis_url %>
|
|
DB_HOST=localhost
|
|
DB_NAME=mastodon
|
|
# TODO: Remove the condition once we have migrated mastodon to andromeda
|
|
<% if node[:platform_version].to_f < 18.04 -%>
|
|
DB_USER=postgres
|
|
DB_PASS=<%= node['postgresql']['password']['postgres'] %>
|
|
<% else -%>
|
|
DB_USER=mastodon
|
|
DB_PASS=<%= @db_pass %>
|
|
<% end -%>
|
|
DB_PORT=5432
|
|
|
|
# Federation
|
|
LOCAL_DOMAIN=<%= @domain %>
|
|
LOCAL_HTTPS=true
|
|
|
|
# Application secrets
|
|
# Generate each with the `rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
|
|
PAPERCLIP_SECRET=<%= @paperclip_secret %>
|
|
SECRET_KEY_BASE=<%= @secret_key_base %>
|
|
OTP_SECRET=<%= @otp_secret %>
|
|
|
|
# Registrations
|
|
# Single user mode will disable registrations and redirect frontpage to the first profile
|
|
# SINGLE_USER_MODE=true
|
|
# Prevent registrations with following e-mail domains
|
|
# EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
|
|
|
|
# E-mail configuration
|
|
SMTP_SERVER=smtp.mailgun.org
|
|
SMTP_PORT=587
|
|
SMTP_LOGIN=<%= @smtp_login %>
|
|
SMTP_PASSWORD=<%= @smtp_password %>
|
|
SMTP_FROM_ADDRESS=<%= @smtp_from_address %>
|
|
|
|
# Optional asset host for multi-server setups
|
|
# CDN_HOST=assets.example.com
|
|
|
|
# S3 (optional)
|
|
S3_ENABLED=true
|
|
S3_BUCKET=<%= @s3_bucket %>
|
|
AWS_ACCESS_KEY_ID=<%= @aws_access_key_id %>
|
|
AWS_SECRET_ACCESS_KEY=<%= @aws_secret_access_key %>
|
|
S3_REGION=<%= @s3_region %>
|
|
|
|
# Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
|
|
# S3_CLOUDFRONT_HOST=
|
|
|
|
# Streaming API integration
|
|
# STREAMING_API_BASE_URL=
|
|
|
|
# Web Push API
|
|
VAPID_PRIVATE_KEY=<%= @vapid_private_key %>
|
|
VAPID_PUBLIC_KEY=<%= @vapid_public_key %>
|
|
|
|
ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
|