Skip to content

Commit

Permalink
Add rewrite for trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Nov 15, 2024
1 parent f75b49c commit cd075b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ server {

add_header X-Proxy-Cache $upstream_cache_status;

rewrite ^/(.*)/$ /$1 permanent;

location = /health {
access_log off;
add_header 'Content-Type' 'application/json';
Expand Down

0 comments on commit cd075b3

Please sign in to comment.