Skip to content

Commit

Permalink
fix cloudfront infinite redirects (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbsimonovic authored Apr 29, 2022
1 parent f86c844 commit 04fe4f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
server {
listen 80;
server_name mentor-admin;
# this prevents infinite loops when nginx is running on http and CloudFront is https
absolute_redirect off;

location / {
if ($request_method = 'OPTIONS') {
Expand Down

0 comments on commit 04fe4f3

Please sign in to comment.