Skip to content

Commit

Permalink
updated nginx config sample
Browse files Browse the repository at this point in the history
  • Loading branch information
onyx-flame committed Jun 23, 2023
1 parent 9aebb49 commit c359c1a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions examples/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
server {
location /flower/static {
alias /the/path/to/flower/static;
}
location /flower {
rewrite ^/flower/(.*)$ /$1 break;
listen 80;

# with url_prefix=`flower`
location /flower/ {
proxy_pass http://localhost:5555;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
}
}

0 comments on commit c359c1a

Please sign in to comment.