]> cat aescling's git repositories - mastodon.git/blob - .env.production.sample
Re-center hidden media text vertical
[mastodon.git] / .env.production.sample
1 # Service dependencies
2 # You may set REDIS_URL instead for more advanced options
3 REDIS_HOST=redis
4 REDIS_PORT=6379
5 # You may set DATABASE_URL instead for more advanced options
6 DB_HOST=db
7 DB_USER=postgres
8 DB_NAME=postgres
9 DB_PASS=
10 DB_PORT=5432
11
12 # Federation
13 # Note: Changing LOCAL_DOMAIN or LOCAL_HTTPS at a later time will cause unwanted side effects.
14 # LOCAL_DOMAIN should *NOT* contain the protocol part of the domain e.g https://example.com.
15 LOCAL_DOMAIN=example.com
16 LOCAL_HTTPS=true
17
18 # Use this only if you need to run mastodon on a different domain than the one used for federation.
19 # You can read more about this option on https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Serving_a_different_domain.md
20 # DO *NOT* USE THIS UNLESS YOU KNOW *EXACTLY* WHAT YOU ARE DOING.
21 # WEB_DOMAIN=mastodon.example.com
22
23 # Use this if you want to have several aliases handler@example1.com
24 # handler@example2.com etc. for the same user. LOCAL_DOMAIN should not
25 # be added. Comma separated values
26 # ALTERNATE_DOMAINS=example1.com,example2.com
27
28 # Application secrets
29 # Generate each with the `RAILS_ENV=production bundle exec rake secret` task (`docker-compose run --rm web rake secret` if you use docker compose)
30 PAPERCLIP_SECRET=
31 SECRET_KEY_BASE=
32 OTP_SECRET=
33
34 # VAPID keys (used for push notifications
35 # You can generate the keys using the following command (first is the private key, second is the public one)
36 # You should only generate this once per instance. If you later decide to change it, all push subscription will
37 # be invalidated, requiring the users to access the website again to resubscribe.
38 #
39 # Generate with `RAILS_ENV=production bundle exec rake mastodon:webpush:generate_vapid_key` task (`docker-compose run --rm web rake mastodon:webpush:generate_vapid_key` if you use docker compose)
40 #
41 # For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html
42 VAPID_PRIVATE_KEY=
43 VAPID_PUBLIC_KEY=
44
45 # Registrations
46 # Single user mode will disable registrations and redirect frontpage to the first profile
47 # SINGLE_USER_MODE=true
48 # Prevent registrations with following e-mail domains
49 # EMAIL_DOMAIN_BLACKLIST=example1.com|example2.de|etc
50 # Only allow registrations with the following e-mail domains
51 # EMAIL_DOMAIN_WHITELIST=example1.com|example2.de|etc
52
53 # Optionally change default language
54 # DEFAULT_LOCALE=de
55
56 # E-mail configuration
57 # Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
58 # If you want to use an SMTP server without authentication (e.g local Postfix relay)
59 # then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
60 # *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
61 SMTP_SERVER=smtp.mailgun.org
62 SMTP_PORT=587
63 SMTP_LOGIN=
64 SMTP_PASSWORD=
65 SMTP_FROM_ADDRESS=notifications@example.com
66 #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
67 #SMTP_DELIVERY_METHOD=smtp # delivery method can also be sendmail
68 #SMTP_AUTH_METHOD=plain
69 #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
70 #SMTP_OPENSSL_VERIFY_MODE=peer
71 #SMTP_ENABLE_STARTTLS_AUTO=true
72 #SMTP_TLS=true
73
74 # Optional user upload path and URL (images, avatars). Default is :rails_root/public/system. If you set this variable, you are responsible for making your HTTP server (eg. nginx) serve these files.
75 # PAPERCLIP_ROOT_PATH=/var/lib/mastodon/public-system
76 # PAPERCLIP_ROOT_URL=/system
77
78 # Optional asset host for multi-server setups
79 # CDN_HOST=https://assets.example.com
80
81 # S3 (optional)
82 # S3_ENABLED=true
83 # S3_BUCKET=
84 # AWS_ACCESS_KEY_ID=
85 # AWS_SECRET_ACCESS_KEY=
86 # S3_REGION=
87 # S3_PROTOCOL=http
88 # S3_HOSTNAME=192.168.1.123:9000
89
90 # S3 (Minio Config (optional) Please check Minio instance for details)
91 # S3_ENABLED=true
92 # S3_BUCKET=
93 # AWS_ACCESS_KEY_ID=
94 # AWS_SECRET_ACCESS_KEY=
95 # S3_REGION=
96 # S3_PROTOCOL=https
97 # S3_HOSTNAME=
98 # S3_ENDPOINT=
99 # S3_SIGNATURE_VERSION=
100
101 # Swift (optional)
102 # SWIFT_ENABLED=true
103 # SWIFT_USERNAME=
104 # SWIFT_TENANT=
105 # SWIFT_PASSWORD=
106 # SWIFT_AUTH_URL=
107 # SWIFT_CONTAINER=
108 # SWIFT_OBJECT_URL=
109
110 # Optional alias for S3 if you want to use Cloudfront or Cloudflare in front
111 # S3_CLOUDFRONT_HOST=
112
113 # Streaming API integration
114 # STREAMING_API_BASE_URL=
115
116 # Advanced settings
117 # If you need to use pgBouncer, you need to disable prepared statements:
118 # PREPARED_STATEMENTS=false
119
120 # Cluster number setting for streaming API server.
121 # If you comment out following line, cluster number will be `numOfCpuCores - 1`.
122 STREAMING_CLUSTER_NUM=1
123
124 # Docker mastodon user
125 # If you use Docker, you may want to assign UID/GID manually.
126 # UID=1000
127 # GID=1000
This page took 0.08204 seconds and 4 git commands to generate.