mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-17 10:27:20 +02:00
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/5476414b-abaf-44f4-96ac-aa4e1c5b96a8 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
24 lines
637 B
Plaintext
24 lines
637 B
Plaintext
server {
|
|
listen %%interface%%:%%port%% default_server;
|
|
|
|
include /etc/nginx/includes/server_params.conf;
|
|
include /etc/nginx/includes/proxy_params.conf;
|
|
|
|
client_max_body_size 0;
|
|
|
|
# Redirect bare root to /files/ so the Vue Router never sees path "/"
|
|
# (Vue Router 4's /:catchAll(.*)* redirect crashes when catchAll is undefined)
|
|
location = / {
|
|
return 302 files/;
|
|
}
|
|
|
|
location / {
|
|
add_header Access-Control-Allow-Origin *;
|
|
proxy_connect_timeout 30m;
|
|
proxy_send_timeout 30m;
|
|
proxy_read_timeout 30m;
|
|
proxy_pass %%protocol%%://backend%%subpath%%;
|
|
}
|
|
|
|
}
|