-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.env.example
More file actions
148 lines (121 loc) · 3.51 KB
/
.env.example
File metadata and controls
148 lines (121 loc) · 3.51 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#####
##### podverse-api
#####
# NOTE:
# Use lowercase true to enable properties.
# Leave value blank or comment out to disable properties.
#####
##### App / General
#####
NODE_ENV=development
SERVER_ENV=local # prod, beta, alpha, local
LOG_LEVEL=info
#####
##### API
#####
API_PORT=1234
API_PREFIX=/api
API_VERSION=/v2
API_ALLOWED_CORS_ORIGINS=http://localhost:3000
# REQUIRED: Must be a valid UUID (the API will not start without a valid UUID)
# Generate one using: uuidgen (macOS/Linux) or https://www.uuidgenerator.net/
AUTH_JWT_SECRET=
USER_AGENT="Podverse Bot Local/API/5" # in prod change to "Podverse Bot/API/5", in alpha change to "Podverse Bot Alpha/API/5", etc.
# Use the public facing domain, not the internal docker network ip address.
COOKIE_DOMAIN=localhost # prefix with a dot for subdomains, e.g. .podverse.fm or .beta.podverse.fm
#####
##### Postgres
#####
DB_HOST=localhost
DB_PORT=5432
DB_READ_USERNAME=
DB_READ_PASSWORD=
DB_READ_WRITE_USERNAME=
DB_READ_WRITE_PASSWORD=
DB_DATABASE=postgres
DB_SSL_CONNECTION=
#####
##### Website related
#####
### NOTE: these are for the *public facing* IP addresses,
### not the internal Docker service network or private IP addresses.
BRAND_NAME=Podverse
WEB_PROTOCOL=http
WEB_DOMAIN=localhost:3000
WEB_ICON_IMAGE_PATH=/favicon/web-app-manifest-192x192.png
#####
##### Auth/Membership
#####
# "sign-up" for paid premium memberships
# "sign-up" plus set costs to 0 for free sign ups
# "contact-only" for contact-only signup mode
ACCOUNT_SIGNUP_MODE=sign-up
VERIFY_EMAIL_TOKEN_EXPIRATION=604800 # 7 days
VERIFY_EMAIL_PAGE_PATH=/verify-email?token=
EMAIL_CHANGE_VERIFICATION_TOKEN_EXPIRATION=604800 # 7 days
EMAIL_CHANGE_VERIFICATION_PAGE_PATH=/email-change-verifying?token=
RESET_PASSWORD_TOKEN_EXPIRATION=86400 # 1 day
RESET_PASSWORD_PAGE_PATH=/reset-password?token=
FREE_TRIAL_EXPIRATION=2592000 # 30 days
PREMIUM_MEMBERSHIP_COST_MONTHLY=3 # monthly cost in USD
PREMIUM_MEMBERSHIP_COST_ANNUALLY=30 # annually cost in USD
#####
##### Email template
#####
### These are used in the templates of the auth related emails we send.
EMAIL_BRAND_COLOR="#2968B1"
EMAIL_HEADER_IMAGE_URL=
LEGAL_NAME=
LEGAL_ADDRESS=
SOCIAL_FACEBOOK_IMAGE_URL=
SOCIAL_FACEBOOK_PAGE_URL=
SOCIAL_GITHUB_IMAGE_URL=
SOCIAL_GITHUB_PAGE_URL=
SOCIAL_TWITTER_IMAGE_URL=
SOCIAL_TWITTER_PAGE_URL=
#####
##### Mailer
#####
MAILER_DISABLED=1
MAILER_HOST=
MAILER_PORT=
MAILER_SERVICE=
MAILER_USERNAME=
MAILER_PASSWORD=
MAILER_FROM=
#####
##### Podcast Index
#####
PODCAST_INDEX_BASE_URL=
PODCAST_INDEX_AUTH_KEY=
PODCAST_INDEX_SECRET_KEY=
# Optional: Delay in milliseconds between Podcast Index API requests in the parser's remote item handling
# Default is 200ms if not specified. Set to 0 to disable.
PODCAST_INDEX_API_RATE_LIMIT_DELAY=200
#####
##### Message Queue
#####
MESSAGE_QUEUE_PROTOCOL=amqp
MESSAGE_QUEUE_HOST=localhost
MESSAGE_QUEUE_USERNAME=user
MESSAGE_QUEUE_PASSWORD=mysecretpw
MESSAGE_QUEUE_PORT=5672
#####
##### Key-value (Valkey / Redis)
#####
KEYVALDB_HOST=127.0.0.1
KEYVALDB_PORT=6379
KEYVALDB_PASSWORD=
KEYVALDB_CACHE_TTL_SECONDS=86400 # 1 day
#####
##### Default Account Settings
#####
# These are used as default values when creating new accounts.
DEFAULT_ACCOUNT_SETTINGS_LOCALE=en-US
#####
##### Parser
#####
# When true, the parser will add remote items to the message queue for processing.
# The parser will recursively follow all remote items, and their remote items, until it runs out.
# If a feed is already in the database, it will not add a message for that remote item feed to the queue.
PARSER_ADD_REMOTE_ITEMS_TO_MQ=