Load site settings from dotenv and store OAuth credentials

This commit is contained in:
2026-11-23 16:53:29 +08:00
parent 1bb0554608
commit 01ede89dcd
27 changed files with 730 additions and 76 deletions
+14
View File
@@ -0,0 +1,14 @@
# 站点对外地址。上线时改为实际域名。
LAYSITE_SITE_URL=http://127.0.0.1:8787
# HTTPS 部署时取消注释。
# LAYSITE_SECURE_COOKIES=1
# 有需要时覆盖默认值。相对路径以项目根目录为基准。
# LAYSITE_LISTEN=http://127.0.0.1:8787
# LAYSITE_WORKERS=2
# LAYSITE_DB=storage/laysite.sqlite
# LAYSITE_MEDIA_DIR=storage/media
# LAYSITE_TRUSTED_PROXIES=127.0.0.1,::1
# 启用 MCP 时填写至少 32 字符的令牌。
# LAYSITE_MCP_TOKEN=