update and test with rpi zero 2
This commit is contained in:
@ -28,16 +28,23 @@ server {
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
root /home/pi/LedBars/RpiLedBars/frontend/webapp/dist;
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
root /home/pi/RpiLedBars/frontend/web/;
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /old/ {
|
||||
alias /home/pi/LedBars/RpiLedBars/frontend/web/;
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ =404;
|
||||
alias /home/pi/RpiLedBars/frontend/web/;
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ index.html =404;
|
||||
}
|
||||
|
||||
location /dev/ {
|
||||
alias /home/pi/LedBars/RpiLedBars/frontend/webapp/dist;
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to displaying a 404.
|
||||
try_files $uri $uri/ index.html =404;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user