-
-
Notifications
You must be signed in to change notification settings - Fork 4
fix(proxy): handle missing locale correctly for /dashboard redirects #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ViktorSvertoka
merged 1 commit into
develop
from
fix/dev-oauth-dashboard-login-redirect
Feb 11, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,73 +1,105 @@ | ||
| # --- Core / Environment | ||
| APP_ADDITIONAL_ORIGINS=https://admin.example.test | ||
| APP_ENV= | ||
| APP_ORIGIN=https://example.test | ||
| APP_URL= | ||
| NEXT_PUBLIC_SITE_URL= | ||
|
|
||
| # --- Database | ||
| DATABASE_URL= | ||
|
|
||
| # --- Upstash Redis (REST) | ||
| UPSTASH_REDIS_REST_URL= | ||
| UPSTASH_REDIS_REST_TOKEN= | ||
|
|
||
| # --- Auth (app) | ||
| AUTH_SECRET= | ||
|
|
||
| CLOUDINARY_CLOUD_NAME= | ||
| # --- OAuth: Google | ||
| GOOGLE_CLIENT_ID_DEVELOP= | ||
| GOOGLE_CLIENT_ID_LOCAL= | ||
| GOOGLE_CLIENT_ID_PROD= | ||
| GOOGLE_CLIENT_REDIRECT_URI_DEVELOP= | ||
| GOOGLE_CLIENT_REDIRECT_URI_LOCAL= | ||
| GOOGLE_CLIENT_REDIRECT_URI_PROD= | ||
| GOOGLE_CLIENT_SECRET_DEVELOP= | ||
| GOOGLE_CLIENT_SECRET_LOCAL= | ||
| GOOGLE_CLIENT_SECRET_PROD= | ||
|
|
||
| # --- OAuth: GitHub | ||
| GITHUB_CLIENT_ID_DEVELOP= | ||
| GITHUB_CLIENT_ID_LOCAL= | ||
| GITHUB_CLIENT_ID_PROD= | ||
| GITHUB_CLIENT_REDIRECT_URI_DEVELOP= | ||
| GITHUB_CLIENT_REDIRECT_URI_LOCAL= | ||
| GITHUB_CLIENT_REDIRECT_URI_PROD= | ||
| GITHUB_CLIENT_SECRET_DEVELOP= | ||
| GITHUB_CLIENT_SECRET_LOCAL= | ||
| GITHUB_CLIENT_SECRET_PROD= | ||
|
|
||
| # --- Cloudinary | ||
| CLOUDINARY_API_KEY= | ||
| CLOUDINARY_API_SECRET= | ||
| CLOUDINARY_CLOUD_NAME= | ||
| CLOUDINARY_UPLOAD_FOLDER= | ||
|
|
||
| CLOUDINARY_URL= | ||
| ENABLE_ADMIN_API= | ||
|
|
||
| # --- Payments (Stripe) | ||
| NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= | ||
| PAYMENTS_ENABLED= | ||
| NEXT_PUBLIC_PAYMENTS_ENABLED= | ||
| # Options: test, live (defaults to test in development, live in production) | ||
| STRIPE_MODE= | ||
| STRIPE_SECRET_KEY= | ||
| STRIPE_WEBHOOK_SECRET= | ||
|
|
||
| STRIPE_MODE= | ||
| NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY= | ||
| # --- Admin / Internal ops | ||
| ENABLE_ADMIN_API= | ||
| INTERNAL_JANITOR_MIN_INTERVAL_SECONDS= | ||
| INTERNAL_JANITOR_SECRET= | ||
| JANITOR_URL= | ||
|
|
||
| NEXT_PUBLIC_SITE_URL= | ||
| NEXT_PUBLIC_SITE_URL= | ||
| # --- Quiz | ||
| QUIZ_ENCRYPTION_KEY= | ||
|
|
||
| # --- Telegram | ||
| TELEGRAM_BOT_TOKEN= | ||
| TELEGRAM_CHAT_ID= | ||
|
|
||
| GOOGLE_CLIENT_ID= | ||
| GOOGLE_CLIENT_SECRET= | ||
| GOOGLE_CLIENT_REDIRECT_URI_LOCAL= | ||
| GOOGLE_CLIENT_REDIRECT_URI_DEVELOP= | ||
| GOOGLE_CLIENT_REDIRECT_URI_PROD= | ||
| GITHUB_CLIENT_ID_DEVELOP= | ||
| GITHUB_CLIENT_SECRET_DEVELOP= | ||
| GITHUB_CLIENT_REDIRECT_URI_DEVELOP= | ||
|
|
||
|
|
||
| APP_ENV= | ||
|
|
||
| INTERNAL_JANITOR_SECRET= | ||
| INTERNAL_JANITOR_MIN_INTERVAL_SECONDS= | ||
|
|
||
| QUIZ_ENCRYPTION_KEY= | ||
|
|
||
| GMAIL_USER= | ||
| GMAIL_APP_PASSWORD= | ||
| # --- Email (Gmail SMTP) | ||
| EMAIL_FROM= | ||
| APP_URL= | ||
| GMAIL_APP_PASSWORD= | ||
| GMAIL_USER= | ||
|
|
||
| # --- Security | ||
| CSRF_SECRET= | ||
|
|
||
| CHECKOUT_RATE_LIMIT_MAX= | ||
| CHECKOUT_RATE_LIMIT_WINDOW_SECONDS= | ||
| CHECKOUT_RATE_LIMIT_MAX=10 | ||
| CHECKOUT_RATE_LIMIT_WINDOW_SECONDS=300 | ||
|
|
||
| STRIPE_WEBHOOK_INVALID_SIG_RL_MAX= | ||
| STRIPE_WEBHOOK_INVALID_SIG_RL_WINDOW_SECONDS= | ||
| # Stripe webhook rate limit envs (applied per reason; reason-specific overrides generic). | ||
| # Missing signature has its own envs with fallback to generic, then legacy invalid_sig. | ||
| STRIPE_WEBHOOK_MISSING_SIG_RL_MAX=30 | ||
| STRIPE_WEBHOOK_MISSING_SIG_RL_WINDOW_SECONDS=60 | ||
|
|
||
| RATE_LIMIT_DISABLED= | ||
| # Generic Stripe webhook rate limit fallback (applies to missing_sig and invalid_sig). | ||
| STRIPE_WEBHOOK_RL_MAX=30 | ||
| STRIPE_WEBHOOK_RL_WINDOW_SECONDS=60 | ||
|
|
||
| STRIPE_WEBHOOK_MISSING_SIG_RL_MAX= | ||
| STRIPE_WEBHOOK_MISSING_SIG_RL_WINDOW_SECONDS= | ||
| # Invalid signature envs (canonical for invalid_sig, legacy fallback for missing_sig). | ||
| STRIPE_WEBHOOK_INVALID_SIG_RL_MAX=30 | ||
| STRIPE_WEBHOOK_INVALID_SIG_RL_WINDOW_SECONDS=60 | ||
|
|
||
| STRIPE_WEBHOOK_RL_MAX= | ||
| STRIPE_WEBHOOK_RL_WINDOW_SECONDS= | ||
| # SECURITY: If true, trust Cloudflare's cf-connecting-ip header for rate limiting. | ||
| # Enable ONLY when traffic is fronted by Cloudflare (header is set by Cloudflare at the edge). | ||
| # Default: false (0). Keep 0 in untrusted environments to avoid IP spoofing. | ||
| TRUST_CF_CONNECTING_IP=0 | ||
|
|
||
| APP_ORIGIN= | ||
| APP_ADDITIONAL_ORIGINS= | ||
| # SECURITY: If true, trust x-real-ip / x-forwarded-for headers for rate limiting. | ||
| # Enable ONLY behind Cloudflare or a trusted reverse proxy that overwrites these headers. | ||
| # Default: false (empty/0/false). | ||
| TRUST_FORWARDED_HEADERS=0 | ||
|
|
||
| TRUST_CF_CONNECTING_IP= | ||
| TRUST_FORWARDED_HEADERS= | ||
| # emergency switch | ||
| RATE_LIMIT_DISABLED=0 | ||
|
|
||
| GROQ_API_KEY= | ||
|
|
||
| UPSTASH_REDIS_REST_URL= | ||
| UPSTASH_REDIS_REST_TOKEN= | ||
| GROQ_API_KEY= | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing trailing newline.
Static analysis flags no blank line at end of file. Most tools and POSIX convention expect a trailing newline.
GROQ_API_KEY= +📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 105-105: [EndingBlankLine] No blank line at the end of the file
(EndingBlankLine)
🤖 Prompt for AI Agents