mirror of
https://github.com/hassio-addons/addon-tasmoadmin.git
synced 2025-05-04 11:01:27 +00:00
🐛 Fix nginx routing for / (#290)
This commit is contained in:
parent
8d7e1d2937
commit
411b5826b1
2 changed files with 8 additions and 2 deletions
|
@ -16,7 +16,6 @@ http {
|
|||
server_name hassio.local;
|
||||
listen 9541 default_server ssl;
|
||||
root /var/www/tasmoadmin/tasmoadmin;
|
||||
index index.php;
|
||||
|
||||
ssl_certificate /ssl/%%certfile%%;
|
||||
ssl_certificate_key /ssl/%%keyfile%%;
|
||||
|
@ -33,6 +32,10 @@ http {
|
|||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Robots-Tag none;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location /data/firmwares {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,10 @@ http {
|
|||
server_name hassio.local;
|
||||
listen 9541 default_server;
|
||||
root /var/www/tasmoadmin/tasmoadmin/;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location /data/firmwares {
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue