Skip to content

Commit

Permalink
Fix redirect to public
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Sep 13, 2024
1 parent bd33f8f commit 6945623
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ server {
return 200 '{"status":"UP"}';
}

location = / {
return 301 /public;
}

location /login {
return 404;
}
Expand Down Expand Up @@ -40,8 +44,6 @@ server {
}

location / {
rewrite ^/$ /public redirect;

proxy_set_header Accept-Encoding "";

sub_filter '<a class="btn btn-info btn-sm justify-content-center" href="/login">\n' '';
Expand Down

0 comments on commit 6945623

Please sign in to comment.