Forráskód Böngészése

Add JWT configuration variables to wrangler.toml for production environment

yb 3 hete
szülő
commit
5a919ad6f9
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      wrangler.toml

+ 3 - 0
wrangler.toml

@@ -5,6 +5,9 @@ compatibility_date = "2024-12-01"
 
 # 开发环境变量(部署时使用 wrangler secret 设置)
 [vars]
+JWT_SECRET = "tg-live-game-jwt-secret-key-2024-production"
+JWT_EXPIRES_IN = "86400"
+REFRESH_EXPIRES_IN = "604800"
 # CUSTOMER_SUBDOMAIN = "your_subdomain"
 
 # 敏感信息使用 secrets(通过 wrangler secret put 设置)