# Proxy Configuration — Glastree ## Nginx Proxy Manager (Custom Nginx Configuration) Nella scheda **Advanced** del tuo proxy host: ```nginx proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Port $server_port; ``` --- ## `.env` (App Laravel) ```env APP_URL=https://glastree.soon.it APP_PROTOCOL=https FORCE_HTTPS=true TRUSTED_PROXIES=* ``` Dopo qualsiasi modifica: ```bash php artisan config:clear ``` --- ## Google OAuth — Authorized Redirect URIs ``` https://glastree.soon.it/auth/google/callback ``` --- ## `bootstrap/app.php` ```php $middleware->trustProxies(at: '*'); ``` --- ## Schema richieste ``` Cliente (HTTPS) ↓ Nginx Proxy Manager (termina TLS, inoltra HTTP + X-Forwarded-Proto: https) ↓ App Laravel (vede richieste come HTTPS grazie a trustProxies(at:"*")) ```