Files
hassio-addons/bazarr/rootfs/etc/nginx/nginx.conf
copilot-swe-agent[bot] 5df9eb8588 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>
2026-04-18 12:53:47 +00:00

58 lines
1.3 KiB
Nginx Configuration File

# Run nginx in foreground.
daemon off;
# This is run inside Docker.
user root;
# Pid storage location.
pid /var/run/nginx.pid;
# Set number of worker processes.
worker_processes 1;
# Enables the use of JIT for regular expressions to speed-up their processing.
pcre_jit on;
# Write error log to Hass.io add-on log.
error_log /proc/1/fd/1 error;
# Load allowed environment vars
env HASSIO_TOKEN;
# Load dynamic modules.
include /etc/nginx/modules/*.conf;
# Max num of simultaneous connections by a worker process.
events {
worker_connections 512;
}
http {
include /etc/nginx/includes/mime.types;
log_format hassio '[$time_local] $status '
'$http_x_forwarded_for($remote_addr) '
'$request ($http_user_agent)';
access_log /proc/1/fd/1 hassio;
client_max_body_size 4G;
default_type application/octet-stream;
gzip on;
keepalive_timeout 65;
sendfile on;
server_tokens off;
tcp_nodelay on;
tcp_nopush on;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
include /etc/nginx/includes/resolver.conf;
include /etc/nginx/includes/upstream.conf;
include /etc/nginx/servers/*.conf;
}