This commit is contained in:
Alexandre
2025-07-30 15:02:32 +02:00
committed by GitHub
parent 6fe6a1f054
commit 287d120258
3 changed files with 0 additions and 49 deletions

View File

@@ -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
},

View File

@@ -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"

View File

@@ -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';
}
}