Skip to content

Commit

Permalink
🐛 FIX: #131
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed May 10, 2021
1 parent b8d937f commit cd2fec7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gp/conf/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ http {
index index.html index.htm index.php;
# Bugfix: https://github.com/apolopena/gitpod-laravel-starter/issues/96
# Rewrite urls that dont have a trailing slash to have a trailing slash thus bypassing redirection.
# Bugfix: https://github.com/apolopena/gitpod-laravel-starter/issues/131
# force rewrite to use https in order to bypass mixed content errors when in an iframe
if (-d $request_filename) {
rewrite [^/]$ $scheme://$http_host$uri/ permanent;
rewrite [^/]$ https://$http_host$uri/ permanent;
}
try_files $uri $uri/ /index.php$is_args$args;
}
Expand Down

0 comments on commit cd2fec7

Please sign in to comment.