🐛 Fix nginx routing for / (#290)

This commit is contained in:
Malachi Soord 2023-03-17 10:28:43 +01:00 committed by GitHub
parent 8d7e1d2937
commit 411b5826b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -16,7 +16,6 @@ http {
server_name hassio.local; server_name hassio.local;
listen 9541 default_server ssl; listen 9541 default_server ssl;
root /var/www/tasmoadmin/tasmoadmin; root /var/www/tasmoadmin/tasmoadmin;
index index.php;
ssl_certificate /ssl/%%certfile%%; ssl_certificate /ssl/%%certfile%%;
ssl_certificate_key /ssl/%%keyfile%%; ssl_certificate_key /ssl/%%keyfile%%;
@ -33,6 +32,10 @@ http {
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none; add_header X-Robots-Tag none;
location / {
try_files $uri /index.php$is_args$args;
}
location /data/firmwares { location /data/firmwares {
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;
} }

View file

@ -16,7 +16,10 @@ http {
server_name hassio.local; server_name hassio.local;
listen 9541 default_server; listen 9541 default_server;
root /var/www/tasmoadmin/tasmoadmin/; root /var/www/tasmoadmin/tasmoadmin/;
index index.php;
location / {
try_files $uri /index.php$is_args$args;
}
location /data/firmwares { location /data/firmwares {
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Origin *;