summaryrefslogtreecommitdiff
path: root/.env.example
diff options
context:
space:
mode:
Diffstat (limited to '.env.example')
-rw-r--r--.env.example25
1 files changed, 12 insertions, 13 deletions
diff --git a/.env.example b/.env.example
index d53c39e..743541b 100644
--- a/.env.example
+++ b/.env.example
@@ -1,10 +1,12 @@
# --- Server Settings ---
# The port for the proxy server to listen on
LISTEN_PORT=8080
+AUTH_PROXY_PUBLISH_PORT=8080
+POCKETBASE_PUBLISH_PORT=8090
# --- Required ---
# The URL of the backend service you want to protect
-TARGET_URL=http://localhost:8081
+TARGET_URL=http://backend:80
# A long, random string for securing session cookies and JWTs
# For production, generate a new key using: openssl rand -base64 45
@@ -14,24 +16,21 @@ SESSION_SECRET=
# Generate with: openssl rand -base64 32
XSRF_SECRET_KEY=
-# --- Database ---
-# Use ONE of the following options:
-
-# Option 1: PostgreSQL or MySQL (Recommended)
-# Example: postgres://user:password@host:port/dbname?sslmode=disable
-# Example: mysql://user:password@tcp(host:port)/dbname?charset=utf8mb4&parseTime=true
-# DATABASE_URL=
-
-# Option 2: SQLite (Default if DATABASE_URL is not set)
-DATABASE_PATH=./auth.db
+# --- PocketBase ---
+POCKETBASE_URL=http://pocketbase:8090
+POCKETBASE_COLLECTION=proxy_users
+POCKETBASE_IDENTITY_FIELD=username
+POCKETBASE_SUPERUSER_EMAIL=admin@example.com
+POCKETBASE_SUPERUSER_PASSWORD=change-me-now
+POCKETBASE_EMAIL_DOMAIN=pb-auth.local
# --- Frontend & Proxy ---
# Frontend mode: "js" (default) or "php"
FRONTEND_TYPE=js
# If true, protects the frontend path with session authentication
-PROTECT_FRONTEND=false
+PROTECT_FRONTEND=true
# If true, protects the API path with bearer token authentication
-PROTECT_API=false
+PROTECT_API=true
# Base path for frontend routes to be protected
FRONT_PATH=/
# Base path for API routes to be protected