penambahan docker dan lain lain untuk penyesuaian docker

This commit is contained in:
Fanrouver
2026-05-19 09:57:46 +07:00
parent cb3310b44b
commit bc74b98cfd
23 changed files with 506 additions and 67 deletions

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ export default defineEventHandler(async (event) => {
console.log('🎲 Generated state:', state.substring(0, 8) + '...')
const oauthDuration = (config.oauthStateDurationMinutes || 10) * 60; // Default to 10 minutes
const isSecure = process.env.NODE_ENV === 'production';
const isSecure = process.env.NODE_ENV === 'production' &&
event.node.req.headers['x-forwarded-proto'] === 'https';
// Store state in session cookie
// IMPORTANT: This cookie is ONLY for the login flow (CSRF protection).