Expose AdminJS on nudentic.ir: nginx only proxied /api, so /admin never reached Nest.

This commit is contained in:
2026-09-01 11:49:14 +03:30
parent dc71c73ced
commit 6465af11ee
12 changed files with 124 additions and 9 deletions

View File

@@ -14,6 +14,11 @@ JWT_REFRESH_EXPIRES_IN=30d
# Must match DOMAIN in .env — used for CORS, invite links, cookies
FRONTEND_URL=https://nudentic.ir
# AdminJS at https://nudentic.ir/admin (nginx proxies /admin to the API).
# Change these — the code defaults are only for local development.
ADMINJS_EMAIL=admin@nudentic.ir
ADMINJS_PASSWORD=CHANGE_ME_STRONG_ADMINJS_PASSWORD
# Required for HTTPS — browsers reject Secure cookies over plain HTTP
COOKIE_SECURE=true