mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
update
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user