Files
2f733f33f5 feat(omniroute): new add-on for OmniRoute AI inference gateway (#3140)
* feat(omniroute): add OmniRoute add-on v3.8.52

* docs(omniroute): fix markdown list spacing and table formatting

* fix(omniroute): sanitize nginx log format, drop json sub_filter, and drop privileges when PUID configured

* fix(omniroute): use --clear-groups in setpriv to allow numeric PUID without passwd entry

* fix(omniroute): ensure cp error stops migration before rm -rf deletes data

* refactor(omniroute): simplify and align with repo architecture based on maintainer review

* omniroute: keep upstream CSP, fix healthcheck, drop non-Supervisor fallbacks

- ingress.conf: rewrite only frame-ancestors 'none' -> 'self' in
  upstream's CSP (nginx map) instead of replacing it with a broad one
- Dockerfile: healthcheck used '&>' which dash (/bin/sh) parses as a
  background job, so it could never fail; use '>/dev/null 2>&1'
- drop :-/ingress, :-8099, :-0.0.0.0 and || true fallbacks
- delete 20-config_location.sh (only created the mounted /config)
- config.yaml: no empty INITIAL_PASSWORD default; OMNIROUTE_MEMORY_MB int
- CHANGELOG/README: port 20128 is opt-in; TZ and password have no default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* omniroute: wrap long config.yaml lines

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: BirdNET-Go Addon Builder <addon-builder@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 23:02:47 +03:00

50 lines
1.1 KiB
Nginx Configuration File

# Run nginx in foreground
daemon off;
# Run as root inside Docker
user root;
# Pid storage location
pid /var/run/nginx.pid;
# Set number of worker processes
worker_processes 1;
# Enables JIT for regex
pcre_jit on;
# Write error log to container stdout
error_log /proc/1/fd/1 error;
# Load dynamic modules
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 512;
}
http {
include /etc/nginx/includes/mime.types;
log_format hassio '[$time_local] $status '
'$http_x_forwarded_for($remote_addr) '
'$request_method $uri ($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/servers/*.conf;
}