Deploy mastodon without the application cookbooks
This commit is contained in:
76
site-cookbooks/kosmos-mastodon/templates/default/env.erb
Normal file
76
site-cookbooks/kosmos-mastodon/templates/default/env.erb
Normal file
@@ -0,0 +1,76 @@
|
||||
# Service dependencies
|
||||
REDIS_URL=<%= @redis_url %>
|
||||
DB_HOST=<%= @db_host %>
|
||||
DB_NAME=mastodon
|
||||
DB_USER=mastodon
|
||||
DB_PASS=<%= @db_pass %>
|
||||
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
|
||||
|
||||
# Serve static files (to nginx proxy)
|
||||
RAILS_SERVE_STATIC_FILES=true
|
||||
|
||||
# Private addresses/subnets to allow outgoing HTTP requests to
|
||||
ALLOWED_PRIVATE_ADDRESSES=<%= @allowed_private_addresses %>
|
||||
|
||||
<% if @s3_endpoint %>
|
||||
# S3 (optional)
|
||||
S3_ENABLED=true
|
||||
S3_ENDPOINT=<%= @s3_endpoint %>
|
||||
S3_REGION=<%= @s3_region %>
|
||||
S3_BUCKET=<%= @s3_bucket %>
|
||||
S3_ALIAS_HOST=<%= @s3_alias_host %>
|
||||
AWS_ACCESS_KEY_ID=<%= @aws_access_key_id %>
|
||||
AWS_SECRET_ACCESS_KEY=<%= @aws_secret_access_key %>
|
||||
<% end %>
|
||||
|
||||
# locale
|
||||
DEFAULT_LOCALE=<%= @default_locale %>
|
||||
|
||||
<% if @libre_translate_endpoint %>
|
||||
# translate
|
||||
LIBRE_TRANSLATE_ENDPOINT=<%= @libre_translate_endpoint %>
|
||||
<% end %>
|
||||
|
||||
# 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 %>
|
||||
|
||||
# Elasticsearch
|
||||
ES_ENABLED=true
|
||||
ES_HOST=localhost
|
||||
ES_PORT=9200
|
||||
|
||||
ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
|
||||
ALTERNATE_DOMAINS='<%= @alternate_domains.join(" ") %>'
|
||||
Reference in New Issue
Block a user