mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
37 lines
988 B
Plaintext
37 lines
988 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;
|
|
|
|
location / {
|
|
add_header Access-Control-Allow-Origin *;
|
|
proxy_connect_timeout 30m;
|
|
proxy_send_timeout 30m;
|
|
proxy_read_timeout 30m;
|
|
proxy_pass http://127.0.0.1:7474;
|
|
|
|
# Allow signalr
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $http_connection;
|
|
#auth_basic off;
|
|
|
|
# Correct base_url
|
|
proxy_set_header Accept-Encoding "";
|
|
sub_filter_once off;
|
|
sub_filter_types *;
|
|
sub_filter /hassioautobrr %%ingress_entry%%/hassioautobrr;
|
|
}
|
|
|
|
# health checks are frequent and boring, so we avoid logging them
|
|
location /health {
|
|
access_log off;
|
|
error_log /dev/stderr error;
|
|
proxy_pass http://127.0.0.1:7474;
|
|
}
|
|
|
|
}
|