Skip to content

Commit

Permalink
backend available at /api
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Rückert García committed Aug 25, 2022
1 parent 2134d6d commit 6ba8c1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ server {
try_files $uri $uri/ /index.html;
}

location /api/ {
proxy_pass http://localhost:8000/;
}

location ~* \.(html)$ {
add_header Cache-Control "no-cache, must-revalidate";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Wants=network.online.target
Type=simple
User=pi
WorkingDirectory=/home/pi/OpenScan3
ExecStart=uvicorn app.main:app --host 0.0.0.0
ExecStart=uvicorn app.main:app --root-path /api

[Install]
WantedBy=multi-user.target

0 comments on commit 6ba8c1d

Please sign in to comment.