Files
glastree/PROXY.md
T

1001 B
Executable File

Proxy Configuration — Glastree

Nginx Proxy Manager (Custom Nginx Configuration)

Nella scheda Advanced del tuo proxy host:

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)

APP_URL=https://glastree.soon.it
APP_PROTOCOL=https
FORCE_HTTPS=true
TRUSTED_PROXIES=*

Dopo qualsiasi modifica:

php artisan config:clear

Google OAuth — Authorized Redirect URIs

https://glastree.soon.it/auth/google/callback

bootstrap/app.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:"*"))