Files
uptimesebi/.env.example
T
Sebastian UnterschützandClaude Opus 5.5 d3cf9f48e1
ci / image (pull_request) Successful in 2m38s
ci / build (pull_request) Successful in 7m5s
ci / lint (pull_request) Successful in 10m15s
ci / test (pull_request) Failing after 11m53s
feat: database monitors with sealed credentials
Secret monitor settings such as database passwords are stored sealed,
bound to monitor type and field, never returned by the API, the console
or exports, kept when an edit leaves them empty, and opened only for the
checker's job. Monitor types are validated by the check package; the
database only checks their format. Compose gets a checks profile with
MariaDB, MongoDB and SQL Server, and CI tests against MariaDB and
MongoDB.

Closes #93

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 16:17:08 +01:00

53 lines
2.3 KiB
Bash

UPTIME_DATABASE_URL=postgres://uptime:uptime@localhost:5432/uptime?sslmode=disable
UPTIME_REDIS_URL=redis://localhost:6379/0
# Sentinel instead of a single redis (docker compose --profile sentinel up -d)
# UPTIME_REDIS_SENTINEL_MASTER=uptime
# UPTIME_REDIS_SENTINEL_ADDRS=127.0.0.1:26379,127.0.0.1:26380,127.0.0.1:26381
# Generate with: echo "k1:$(head -c32 /dev/urandom | base64)"
UPTIME_SECRET_KEYS=dev:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
UPTIME_PUBLIC_URL=http://localhost:8080
# Lets organizations use IdPs on private networks (e.g. an internal Keycloak).
# auto = allowed for UPTIME_EDITION=selfhosted, denied for cloud.
UPTIME_SSO_ALLOW_PRIVATE_NETWORKS=auto
# Checker and status page reach the API only. Create tokens with:
# api agent create --kind checker --region local --name dev
# api agent create --kind statuspage --name dev
# and set UPTIME_AGENT_TOKEN for each process.
UPTIME_API_URL=http://localhost:8080
# Integration tests (make test). The Redis database is flushed by the tests.
UPTIME_TEST_DATABASE_URL=postgres://uptime:uptime@localhost:5432/uptime_test?sslmode=disable
UPTIME_TEST_REDIS_URL=redis://localhost:6379/15
# Database checks are also tested against these when set
# (docker compose --profile checks up -d --wait).
# UPTIME_TEST_MYSQL_ADDR=localhost:13306
# UPTIME_TEST_MONGO_ADDR=localhost:27018
# UPTIME_TEST_MSSQL_ADDR=localhost:11433
# Reverse proxies allowed to set X-Forwarded-For (comma-separated IPs/CIDRs).
# UPTIME_TRUSTED_PROXIES=10.0.0.0/8
# Data retention (0 keeps forever). Raw results feed charts up to 24h, the
# hourly aggregate 7d and 30d, the daily aggregate up to a year; resolved
# incidents follow the daily aggregate.
# UPTIME_RETENTION_RAW=2160h
# UPTIME_RETENTION_HOURLY=9600h
# UPTIME_RETENTION_DAILY=26280h
# Delivered notifications, expired invitations and expired API tokens.
# UPTIME_RETENTION_HOUSEKEEPING=720h
# Audit log entries.
# UPTIME_RETENTION_AUDIT=8760h
# What checkers saw of HTTP responses.
# UPTIME_RETENTION_EVIDENCE=720h
# Status page server: hosts serving pages by slug; enable TLS for custom domains.
UPTIME_STATUSPAGE_URL=http://localhost:8082
UPTIME_STATUSPAGE_HOSTS=localhost
# UPTIME_STATUSPAGE_TLS=true
# UPTIME_ACME_EMAIL=ops@example.com
# UPTIME_ACME_CA=https://acme-staging-v02.api.letsencrypt.org/directory