diff --git a/omni-tools/config.json b/omni-tools/config.json index 923d62065..1a0dc14aa 100644 --- a/omni-tools/config.json +++ b/omni-tools/config.json @@ -6,14 +6,10 @@ "codenotary": "alexandrep.github@gmail.com", "description": "Self-hosted collection of powerful web-based tools for everyday tasks. No ads, no tracking, just fast, accessible utilities right from your browser", "image": "ghcr.io/alexbelgium/omni-tools-{arch}", - "ingress": true, - "ingress_stream": true, "map": [ "addon_config:rw" ], "name": "Omni Tools", - "panel_admin": false, - "panel_icon": "mdi:toolbox", "ports": { "80/tcp": 8188 }, diff --git a/omni-tools/rootfs/etc/cont-init.d/31-ingress.conf b/omni-tools/rootfs/etc/cont-init.d/31-ingress.conf deleted file mode 100644 index 0c4a4515f..000000000 --- a/omni-tools/rootfs/etc/cont-init.d/31-ingress.conf +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/with-contenv bashio -# shellcheck shell=bash -set -e - -################# -# NGINX SETTING # -################# - -declare ingress_interface -declare ingress_port - -mv "/ingress.conf" "/etc/nginx/conf.d" - -echo "Adapting for ingress" -ingress_port=$(bashio::addon.ingress_port) -ingress_interface=$(bashio::addon.ip_address) -sed -i "s/%%port%%/${ingress_port}/g" "/etc/nginx/conf.d/ingress.conf" -sed -i "s/%%interface%%/${ingress_interface}/g" "/etc/nginx/conf.d/ingress.conf" diff --git a/omni-tools/rootfs/ingress.conf b/omni-tools/rootfs/ingress.conf deleted file mode 100644 index 24b304bdd..000000000 --- a/omni-tools/rootfs/ingress.conf +++ /dev/null @@ -1,27 +0,0 @@ - server { - listen %%interface%%:%%port%% default_server; - include /etc/nginx/includes/server_params.conf; - include /etc/nginx/includes/proxy_params.conf; - proxy_buffering off; - - location / { - # Proxy pass - proxy_pass http://127.0.0.1:80; - - # Allow downloading fragments - proxy_set_header Range $http_range; - proxy_set_header If-Range $http_if_range; - - # Next three lines allow websockets - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - - proxy_hide_header X-Powered-By; - add_header X-Xss-Protection "1; mode=block"; - add_header X-Content-Type-Options "nosniff"; - add_header Strict-Transport-Security "max-age=2592000; includeSubdomains"; - add_header X-Frame-Options "SAMEORIGIN"; - add_header 'Referrer-Policy' 'no-referrer'; - } -}