Skip to content

Commit

Permalink
core: nginx: Move helper to /helper and use / for the main frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Jun 18, 2021
1 parent 0c9de2e commit 1997dc4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/tools/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ http {
proxy_pass http://127.0.0.1:9090;
}

location / {
location /helper {
rewrite ^/helper$ /helper/ redirect;
rewrite ^/helper/(.*)$ /$1 break;
proxy_pass http://127.0.0.1:81;
}

location / {
root /home/pi/frontend;
}
}
}

0 comments on commit 1997dc4

Please sign in to comment.