mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-18 23:57:37 +02:00
fix(ente): fix nginx rewrite loop by correcting $uri escaping and adding =404 fallback
This commit is contained in:
committed by
GitHub
parent
27fa8d0315
commit
4c2f7e5b65
@@ -1,20 +1,20 @@
|
|||||||
server {
|
server {
|
||||||
listen 3000; root /www/photos;
|
listen 3000; root /www/photos;
|
||||||
location / { try_files \$uri \$uri.html /index.html; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 3001; root /www/accounts;
|
listen 3001; root /www/accounts;
|
||||||
location / { try_files \$uri \$uri.html /index.html; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 3002; root /www/photos;
|
listen 3002; root /www/photos;
|
||||||
location / { try_files \$uri \$uri.html /index.html; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 3003; root /www/auth;
|
listen 3003; root /www/auth;
|
||||||
location / { try_files \$uri \$uri.html /index.html; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 3004; root /www/cast;
|
listen 3004; root /www/cast;
|
||||||
location / { try_files \$uri \$uri.html /index.html; }
|
location / { try_files $uri $uri.html /index.html =404; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user