Skip to content

Commit

Permalink
More secure nginx configuration examples (#1966)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoLeonardini authored Apr 4, 2023
1 parent 64a1826 commit 9b861ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ proxies HTTP and WebSocket requests::
proxy_pass http://127.0.0.1:5000;
}

location /static {
alias <path-to-your-application>/static;
location /static/ {
alias <path-to-your-application>/static/;
expires 30d;
}

Expand Down Expand Up @@ -131,8 +131,8 @@ servers::
proxy_pass http://127.0.0.1:5000;
}

location /static {
alias <path-to-your-application>/static;
location /static/ {
alias <path-to-your-application>/static/;
expires 30d;
}

Expand Down

0 comments on commit 9b861ce

Please sign in to comment.