Skip to content

Commit

Permalink
improve default nginx conf
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jul 21, 2024
1 parent afefe07 commit 6c56141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
CHANGE LOG
==========

1.0.0+dev (XXXX-XX-XX)
-------------------------

**Improvements**

- Default nginx configuration now redirect to backend when admin or api url does not have trailing /.


1.0.0 (2024-07-19)
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion install/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server {

client_max_body_size 200M;

location ~ ^/(api|admin)/ {
location ~ ^/(api|admin) {
proxy_pass http://django;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down

0 comments on commit 6c56141

Please sign in to comment.