forked from plausible/community-edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.env
52 lines (42 loc) · 1.93 KB
/
example.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Variables used in the deployment script in Forge for logging
APP_NAME="Plausible Analytics"
# Traefik config options - see /reverse-proxy/traefik/docker-compose.traefik.yml for usage
URL_FOR_TRAEFIK=subdomain.domain.tld
# Plausible config options
# https://plausible.io/docs/self-hosting-configuration#server. Note that 'https://' included in the URL.
BASE_URL=https://subdomain.domain.tld
# SECRET_KEY_BASE should be a 64 character long random string, or use openssl rand -hex 64 to generate one
SECRET_KEY_BASE=REPLACEME
# The IP address on which the server is listening. 0.0.0.0 means all interfaces, 127.0.0.1 means localhost.
LISTEN_IP=0.0.0.0
# valid values: true, false, invite_only
DISABLE_REGISTRATION=true
# Controls whether to log warnings about failed login attempts.
LOG_FAILED_LOGIN_ATTEMPTS=false
# Set up mail server for sending transactional emails
MAILER_NAME="Plausible Analytics Server"
SMTP_HOST_ADDR=REPLACEME
SMTP_HOST_PORT=REPLACEME
SMTP_USER_NAME=REPLACEME
SMTP_USER_PWD=REPLACEME
SMTP_HOST_SSL_ENABLED=REPLACEME
SMTP_RETRIES=2
# Used for backup and restore scripts on your Forge server
# Paths must end in /
# root path to where backup files will be stored
LOCAL_BACKUP_PATH=/home/forge/analytics/backups/
# amended to LOCAL_BACKUP_PATH for your postgres data
LOCAL_POSTGRES_PATH=postgres-data/
# amended to LOCAL_BACKUP_PATH for your clickhouse event data
LOCAL_CLICKHOUSE_PATH=clickhouse-data/
# number of days to keep backups locally on your Forge server
LOCAL_BACKUP_RETENTION_DAYS=7
# find your container name with docker ps -a
POSTGRES_CONTAINER_NAME="analytics-plausible_db-1"
CLICKHOUSE_CONTAINER_NAME="analytics-plausible_events_db-1"
# Set up S3 for storing backups - These are not currently used in this public repo,
# but are included for your convenience for when I add a remote backup script to this repo
S3_BUCKET_NAME=REPLACE_ME
S3_ACCESS_KEY_ID=REPLACE_ME
S3_SECRET_ACCESS_KEY=REPLACE_ME