Files
omar 95d5d6d1b3
CI / validate (push) Successful in 33s
CI / gateway-contract (push) Failing after 56s
CI / images (deploy/Dockerfile.api, api) (push) Skipped
CI / images (deploy/Dockerfile.checker, checker) (push) Skipped
CI / images (deploy/Dockerfile.http-gateway, http-gateway) (push) Skipped
CI / images (deploy/Dockerfile.web, web) (push) Skipped
Allow any public upstream address by explicit opt-in
Accept GATEWAY_UPSTREAM_NETWORKS=any while keeping public, own-IP, mixed-answer, destination and client checks.
2026-11-27 08:47:23 +03:00

51 lines
2.0 KiB
Bash

# Copy to .env and adjust. Compose reads this file by default.
# --- PostgreSQL ---
POSTGRES_USER=perchik
POSTGRES_PASSWORD=change-me-db
POSTGRES_DB=perchik
# --- Admin panel (single operator) ---
ADMIN_USER=admin
ADMIN_PASSWORD=change-me-admin
# HMAC key that signs session tokens — use a long random string.
SESSION_SECRET=change-me-to-a-long-random-secret
# --- Runtime ---
LOG_LEVEL=info
# Host port the panel is served on (http://localhost:8088 by default).
WEB_PORT=8088
# --- Image tagging (used by CI / registry pushes) ---
# REGISTRY=git.eeee.moe/omar
# TAG=latest
# --- Optional private HTTP gateway (docker compose --profile gateway) ---
# Empty starts the full gateway; catalog-only serves the API without forwarding or probes.
GATEWAY_MODE=
# Bind the forwarding ports to loopback or an explicit VPN interface, not a wildcard.
GATEWAY_BIND_IP=127.0.0.1
GATEWAY_PROXY_PORT=8081
# API binding is independent. For 0.0.0.0, restrict ingress and use a VPN or TLS.
GATEWAY_API_BIND_IP=127.0.0.1
GATEWAY_API_PORT=8082
# Published and advertised SOCKS5 port; the full gateway listens on 1080.
GATEWAY_SOCKS_PORT=1080
# HTTP proxy address clients can reach; SOCKS5 exports reuse its host.
# For example, 127.0.0.1:8081 or a private VPN name:port.
GATEWAY_PUBLIC_PROXY_ADDR=
# Dedicated restricted PostgreSQL login provisioned with deploy/gateway-grants.sql.
GATEWAY_DB_DSN=
# Generate each independently: openssl rand -base64 32 | tr '/+' '_-' | tr -d '=\n'
GATEWAY_API_TOKEN=
GATEWAY_NODE_SECRET=
# The three forwarding settings below are required in full mode only.
# Fixed HTTPS control endpoint with valid TLS and a stable 204 response.
GATEWAY_PROBE_URL=
# Comma-separated exact DNS names and TCP ports, including the probe authority.
# Set "Allow all public websites" in admin Settings, not in the environment.
GATEWAY_ALLOWED_DESTINATIONS=
# Set GATEWAY_UPSTREAM_NETWORKS=any to allow public upstream peers from the snapshot.
# For stricter filtering, list 1-32 public peer IPs or canonical CIDRs (/24 IPv4, /64 IPv6, or narrower).
GATEWAY_UPSTREAM_NETWORKS=