mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Ingress addition
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
|
- Ingress addition
|
||||||
|
|
||||||
## 1.19.0 (18-03-2023)
|
## 1.19.0 (18-03-2023)
|
||||||
|
|
||||||
- Update to latest version from autobrr/autobrr
|
- Update to latest version from autobrr/autobrr
|
||||||
### v1.9.0 (17-03-2023)
|
|
||||||
- Minor bugs fixed
|
|
||||||
### 1.9.0 (17-03-2023)
|
|
||||||
- Minor bugs fixed
|
|
||||||
- First version
|
- First version
|
||||||
|
|||||||
@@ -45,10 +45,12 @@
|
|||||||
"BASE_DOCKER_DATA_PATH": "/data/autobrr",
|
"BASE_DOCKER_DATA_PATH": "/data/autobrr",
|
||||||
"PGID": "0",
|
"PGID": "0",
|
||||||
"PUID": "0",
|
"PUID": "0",
|
||||||
"WEBUI_PORT": "7474"
|
"WEBUI_PASSWORD": "password",
|
||||||
|
"WEBUI_PORT": "7474",
|
||||||
|
"WEBUI_USERNAME": "admin"
|
||||||
},
|
},
|
||||||
"image": "ghcr.io/alexbelgium/autobrr-{arch}",
|
"image": "ghcr.io/alexbelgium/autobrr-{arch}",
|
||||||
"ingress_entry": "hassioautobrr",
|
"ingress": true,
|
||||||
"init": false,
|
"init": false,
|
||||||
"map": [
|
"map": [
|
||||||
"config:rw",
|
"config:rw",
|
||||||
@@ -83,6 +85,6 @@
|
|||||||
},
|
},
|
||||||
"slug": "autobrr",
|
"slug": "autobrr",
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/autobrr",
|
"url": "https://github.com/alexbelgium/hassio-addons/tree/master/autobrr",
|
||||||
"version": "1.19.0",
|
"version": "1.19.0-2",
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:7474]"
|
"webui": "[PROTO:ssl]://[HOST]:[PORT:7474]"
|
||||||
}
|
}
|
||||||
@@ -13,3 +13,4 @@ ingress_entry=$(bashio::addon.ingress_entry)
|
|||||||
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/servers/ingress.conf
|
||||||
sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
|
sed -i "s|%%ingress_entry%%|${ingress_entry}|g" /etc/nginx/servers/ingress.conf
|
||||||
|
sed -i "s|%%ingress_entry2%%|${ingress_entry////\\/}|g" /etc/nginx/servers/ingress.conf
|
||||||
|
|||||||
@@ -6,15 +6,9 @@
|
|||||||
###############
|
###############
|
||||||
|
|
||||||
# Set UrlBase
|
# Set UrlBase
|
||||||
#if ! grep -q "hassioautobrr" /config/addons_config/autobrr/config.toml; then
|
|
||||||
# bashio::log.warning "BaseUrl not set properly, restarting"
|
|
||||||
# sed -i "/baseUrl/d" /config/addons_config/autobrr/config.toml
|
|
||||||
# sed -i "/# Base url/a baseUrl = \"\/hassioautobrr\/\"" /config/addons_config/autobrr/config.toml
|
|
||||||
# bashio::addon.restart
|
|
||||||
#fi
|
|
||||||
|
|
||||||
#bashio::log.info "Starting NGinx..."
|
bashio::log.info "Starting NGinx..."
|
||||||
#nginx & true
|
nginx & true
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Start app #
|
# Start app #
|
||||||
|
|||||||
@@ -11,19 +11,20 @@ server {
|
|||||||
proxy_connect_timeout 30m;
|
proxy_connect_timeout 30m;
|
||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
proxy_pass http://127.0.0.1:7474;
|
proxy_pass http://0.0.0.0:7474;
|
||||||
|
|
||||||
# Allow signalr
|
# Allow signalr
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $http_connection;
|
proxy_set_header Connection $http_connection;
|
||||||
#auth_basic off;
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
|
|
||||||
# Correct base_url
|
# Correct base_url
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types *;
|
sub_filter_types *;
|
||||||
sub_filter /hassioautobrr %%ingress_entry%%/hassioautobrr;
|
sub_filter 'href="/"' 'href="%%ingress_entry%%/"';
|
||||||
|
sub_filter '"\/"' '"%%ingress_entry2%%\/"';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user