From bb9a6bbb125d6f66b29caa577a3d4ca09c08c34b Mon Sep 17 00:00:00 2001 From: SquidSpirit Date: Sun, 12 Oct 2025 03:47:47 +0800 Subject: [PATCH] feat: add example environment configuration file --- backend/.env.example | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 backend/.env.example diff --git a/backend/.env.example b/backend/.env.example new file mode 100644 index 0000000..f2a45cb --- /dev/null +++ b/backend/.env.example @@ -0,0 +1,21 @@ +HOST=127.0.0.1 +PORT=8080 + +DATABASE_HOST=127.0.0.1 +DATABASE_PORT=5432 +DATABASE_USER=postgres +DATABASE_PASSWORD= +DATABASE_NAME=postgres + +# For sqlx migrations +DATABASE_URL=postgres://postgres@127.0.0.1:5432/postgres + +OIDC_ISSUER_URL=https://xxx +OIDC_CLIENT_ID=xxx +OIDC_CLIENT_SECRET=xxx +OIDC_REDIRECT_URL=http://localhost:8080/auth/callback + +SESSION_KEY='openssl rand -hex 64' +REDIS_URL=redis://127.0.0.1:6379 + +STORAGE_PATH=static