-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
28 lines (24 loc) · 1.32 KB
/
.env.example
File metadata and controls
28 lines (24 loc) · 1.32 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
# Copy this file to `.env.local` for source-based local development.
# `.env.example` is the only committed template. Runtime code reads `.env.local`
# for local development and does not treat `.env.example` or `.env` as inputs.
# `air` must be started from the repository root so bootstrap can load `.env.local`.
# Missing `.env.local`, `PORT`, `DATABASE_URL`, or `REDIS_URL` is a startup
# error; the backend will not fall back to placeholder datasource defaults.
# Website development
OPENTOGGL_WEB_PROXY_TARGET=http://127.0.0.1:8080
# API runtime
OPENTOGGL_SERVICE_NAME=opentoggl-api
PORT=8080
DATABASE_URL=postgres://opentoggl@localhost/opentoggl
REDIS_URL=redis://127.0.0.1:6379/0
OPENTOGGL_FILESTORE_NAMESPACE=opentoggl
OPENTOGGL_JOBS_QUEUE_NAME=default
# Telemetry — anonymous daily version check-in to https://update.opentoggl.com/,
# used to surface "update available" + announcements in the admin overview.
# Set OPENTOGGL_TELEMETRY=off to disable. No request-level data is sent.
OPENTOGGL_TELEMETRY=on
# Webhook outbound targets. Default false: callbacks pointing at loopback,
# RFC1918, link-local (including 169.254.169.254), or CGNAT ranges are
# rejected to prevent SSRF pivots. Set to true ONLY on a trusted LAN where
# intranet webhook receivers are intentional and users are trusted.
OPENTOGGL_WEBHOOK_ALLOW_PRIVATE_TARGETS=false