You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After install this I can access the site with https://localhost, but trying to enter username password it always fail, while using http://localhost is working fine. What would it causes the issue? How should I fix this.
server {
listen 443 ssl default_server;
server_name ${SERVER_NAME};
# Self signed certificates
# Don't use them in a production server!
ssl_certificate /etc/nginx/certs/server.pem;
ssl_certificate_key /etc/nginx/certs/server.key;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://${APP_SERVICE}:8000;
}
}
The text was updated successfully, but these errors were encountered:
I got it fixed now.
I need to add this in the AppServiceProvider.php, since Laravel always forward to http:// without this one. Then the session was not save because it was 301 redirect
public function boot()
{
//Zen add
\Illuminate\Support\Facades\URL::forceScheme('https');
}
After install this I can access the site with https://localhost, but trying to enter username password it always fail, while using http://localhost is working fine. What would it causes the issue? How should I fix this.
server {
listen 443 ssl default_server;
server_name ${SERVER_NAME};
}
The text was updated successfully, but these errors were encountered: