This commit is contained in:
Alexandre
2025-07-30 09:58:32 +02:00
committed by GitHub
parent ce56dda53d
commit 919b110d0f
2 changed files with 9 additions and 24 deletions

View File

@@ -26,10 +26,10 @@
"panel_admin": false, "panel_admin": false,
"panel_icon": "mdi:toolbox", "panel_icon": "mdi:toolbox",
"ports": { "ports": {
"8080/tcp": 8080 "80/tcp": 8188
}, },
"ports_description": { "ports_description": {
"8080/tcp": "Web UI port" "80/tcp": "Web UI port"
}, },
"privileged": [ "privileged": [
"SYS_ADMIN", "SYS_ADMIN",

View File

@@ -5,28 +5,13 @@
# Starts omni-tools # Starts omni-tools
# ============================================================================== # ==============================================================================
bashio::log.info "Starting omni-tools..." # Start omni-tools container content
bashio::log.info "Starting application"
/./docker-entrypoint.sh & true
# Create nginx configuration # Wait for app to become available
mkdir -p /etc/nginx/http.d bashio::net.wait_for 8096 localhost 900
cat > /etc/nginx/http.d/default.conf << 'EOF'
server {
listen 8080;
server_name _;
location / {
proxy_pass http://localhost:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
EOF
# Start nginx # Start nginx
nginx bashio::log.info "Starting NGinx..."
exec nginx &>/proc/1/fd/1
# Start omni-tools container content
exec docker run -d --name omni-tools-app --restart unless-stopped -p 80:80 iib0011/omni-tools:latest