mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 21:34:06 +02:00
Add Ingress support to Bazarr NAS addon
- Add ingress: true, ingress_entry, panel_icon, panel_admin to config.yaml - Add connection_mode option (ingress_noauth/noingress_auth/ingress_auth) - Add nginx package and 90-disable_ingress.sh module to Dockerfile - Add nginx reverse proxy configuration (matching Sonarr/Radarr pattern) - Add 32-nginx_ingress.sh init script for Bazarr YAML config handling - Add nginx S6 service (run/finish) with base_url validation Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/621436fb-7e38-4572-8231-55b067f62d83 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
69f1e74476
commit
5df9eb8588
29
bazarr/rootfs/etc/nginx/servers/ingress.conf
Normal file
29
bazarr/rootfs/etc/nginx/servers/ingress.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
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:6767;
|
||||
|
||||
# Allow websocket
|
||||
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 /bazarr %%ingress_entry%%/bazarr;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user