-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-example
More file actions
31 lines (24 loc) · 1.26 KB
/
env-example
File metadata and controls
31 lines (24 loc) · 1.26 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
# Pick either release or debug. Almost always "release".
GIN_MODE=release
# What address and port will TPS listen on?
BIND_ADDR=:8080
# Turnstile keys - you need to have a cloudflare login for this
TURNSTILE_SITE_KEY=foo
TURNSTILE_SECRET_KEY=bar
# Choose something long and secure here for encrypting the JWT cookie
JWT_SIGNING_KEY=shhhhhh-this-is-very-secret
# Backend(s) that TPS proxies verified requests to. These should be *private*
# URLs, not public ones, as Caddy and TPS should be fronting the protected
# apps. Set either PROXY_TARGETS (multi-backend) or PROXY_TARGET (single
# backend) -- if both are set, PROXY_TARGETS wins and PROXY_TARGET is ignored.
#
# PROXY_TARGETS is a comma-separated list of "prefix=url" entries. The longest
# request-path prefix that matches wins. Use "/" as a catch-all.
PROXY_TARGETS="/protected/=http://app:8080,/static-protected/=http://caddy:8081"
# Single-backend, legacy form. Equivalent to PROXY_TARGETS="/=<url>".
PROXY_TARGET="http://localhost"
# Where will you record the stats? This is a DSN to a MariaDB database. If
# unset, request logging is disabled and TPS runs without a database.
DATABASE_DSN="user:pass@tcp(host:3306)/dbname?parseTime=true"
# Where are custom templates (if any) found?
TEMPLATE_PATH="/var/local/tps/templates"