mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-22 23:36:05 +02:00
Update
This commit is contained in:
@@ -6,14 +6,10 @@
|
|||||||
"codenotary": "alexandrep.github@gmail.com",
|
"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",
|
"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}",
|
"image": "ghcr.io/alexbelgium/omni-tools-{arch}",
|
||||||
"ingress": true,
|
|
||||||
"ingress_stream": true,
|
|
||||||
"map": [
|
"map": [
|
||||||
"addon_config:rw"
|
"addon_config:rw"
|
||||||
],
|
],
|
||||||
"name": "Omni Tools",
|
"name": "Omni Tools",
|
||||||
"panel_admin": false,
|
|
||||||
"panel_icon": "mdi:toolbox",
|
|
||||||
"ports": {
|
"ports": {
|
||||||
"80/tcp": 8188
|
"80/tcp": 8188
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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"
|
|
||||||
@@ -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';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user