From 316aedc69fef52c31595c9e76400192e2f059eef Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 19 Aug 2026 14:03:10 +0200 Subject: [PATCH] chore: document new configuration + add redis to docker compose --- .docker/docker-compose.yml | 5 +++++ README.md | 2 ++ example.env | 2 ++ 3 files changed, 9 insertions(+) diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index 68b521e..943c6e3 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -1,6 +1,11 @@ name: "pn-website-dev" services: + redis: + image: redis:8.2-alpine + restart: unless-stopped + ports: + - "6379:6379" # Redis port mailpit: image: axllent/mailpit restart: unless-stopped diff --git a/README.md b/README.md index a6aee97..9fe14f4 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ There are no fully required configuration variables, the app can runs minimally | Core | `PN_WEBSITE_PUBLIC_BASE_URL` | Base URL of the app | `https://pretendo.network` | | | `PN_WEBSITE_PUBLIC_CDN_BASE_URL` | Base URL for the CDN | `https://r2-cdn.pretendo.cc` | | | `PN_WEBSITE_PUBLIC_COOKIE_SECURE` | Should Secure be enabled for auth cookies | `true` | +| | `PN_WEBSITE_TRUST_PROXY` | Should X-Forwarded-* headers be trusted? | `false` | +| | `PN_WEBSITE_REDIS_URL` | Redis URL to use for caching & ratelimits | (No distributed KV) | | | | | | | Authentication | `PN_WEBSITE_GRPC_HOST` | Account server GRPC host + port | - | | | `PN_WEBSITE_GRPC_API_KEY` | Account server GRPC API key | - | diff --git a/example.env b/example.env index 8e0b039..f9f0847 100644 --- a/example.env +++ b/example.env @@ -5,6 +5,8 @@ PN_WEBSITE_PUBLIC_BASE_URL=http://localhost:3000 PN_WEBSITE_PUBLIC_CDN_BASE_URL=http://pretendo.localhost:3902 PN_WEBSITE_PUBLIC_COOKIE_SECURE=false PN_WEBSITE_PUBLIC_REDIRECT_HOSTS=localhost:3000 +PN_WEBSITE_TRUST_PROXY=false +PN_WEBSITE_REDIS_URL=redis://localhost:6379 # Optional - Authentication PN_WEBSITE_GRPC_HOST=localhost:8123