mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-06 20:04:54 +01:00
New addon
This commit is contained in:
@@ -1,2 +1 @@
|
|||||||
### 1.0 (02-03-2024)
|
|
||||||
- New addon
|
- New addon
|
||||||
|
|||||||
@@ -63,6 +63,8 @@
|
|||||||
"PUID": "0"
|
"PUID": "0"
|
||||||
},
|
},
|
||||||
"image": "ghcr.io/alexbelgium/codex-{arch}",
|
"image": "ghcr.io/alexbelgium/codex-{arch}",
|
||||||
|
"ingress": true,
|
||||||
|
"ingress_stream": true,
|
||||||
"map": [
|
"map": [
|
||||||
"addon_config:rw",
|
"addon_config:rw",
|
||||||
"media:rw",
|
"media:rw",
|
||||||
@@ -99,6 +101,5 @@
|
|||||||
"slug": "codex",
|
"slug": "codex",
|
||||||
"udev": true,
|
"udev": true,
|
||||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||||
"version": "1.0",
|
"version": "1.4.3"
|
||||||
"webui": "[PROTO:ssl]://[HOST]:[PORT:9810]"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ declare ingress_interface
|
|||||||
declare ingress_port
|
declare ingress_port
|
||||||
#declare keyfile
|
#declare keyfile
|
||||||
|
|
||||||
FB_BASEURL=$(bashio::addon.ingress_entry)
|
FB_BASEURL="$(bashio::addon.ingress_entry)"
|
||||||
export FB_BASEURL
|
export FB_BASEURL
|
||||||
|
|
||||||
declare ADDON_PROTOCOL=http
|
declare ADDON_PROTOCOL=http
|
||||||
@@ -48,10 +48,14 @@ mkdir -p /var/log/nginx && touch /var/log/nginx/error.log
|
|||||||
for file in /config/hypercorn.toml $(find /usr -name hypercorn.toml.default); do
|
for file in /config/hypercorn.toml $(find /usr -name hypercorn.toml.default); do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
sed -i "/root_path/d" "$file"
|
sed -i "/root_path/d" "$file"
|
||||||
echo "root_path = \"${FB_BASEURL}\"" >> "$file"
|
sed -i "1a root_path = \"${FB_BASEURL}\"" "$file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Export CSRF
|
||||||
|
export CSRF_TRUSTED_ORIGINS="http://localhost,http://192.168.178.23"
|
||||||
|
export ALLOWED_HOSTS="*"
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# LAUNCH APP #
|
# LAUNCH APP #
|
||||||
##############
|
##############
|
||||||
@@ -60,8 +64,8 @@ bashio::log.warning "Default password admin:admin..."
|
|||||||
bashio::log.info "Starting..."
|
bashio::log.info "Starting..."
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
/./usr/local/bin/codex
|
/./usr/local/bin/codex & true
|
||||||
|
|
||||||
bashio::net.wait_for 8080 localhost 900 || true
|
bashio::net.wait_for 9810 localhost 900 || true
|
||||||
bashio::log.info "Started !"
|
bashio::log.info "Started !"
|
||||||
exec nginx0
|
exec nginx
|
||||||
|
|||||||
@@ -7,7 +7,12 @@ server {
|
|||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
# Allow frames
|
||||||
|
## proxy_hide_header "Content-Security-Policy";
|
||||||
|
add_header X-Frame-Options SAMEORIGIN; # Required for ingress frame
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
||||||
proxy_connect_timeout 30m;
|
proxy_connect_timeout 30m;
|
||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"github_beta": "true",
|
"github_beta": "true",
|
||||||
"last_update": "16-09-2023",
|
"last_update": "06-03-2024",
|
||||||
"paused": true,
|
|
||||||
"repository": "alexbelgium/hassio-addons",
|
"repository": "alexbelgium/hassio-addons",
|
||||||
"slug": "codex",
|
"slug": "codex",
|
||||||
"source": "github",
|
"source": "github",
|
||||||
"upstream_repo": "ajslater/codex",
|
"upstream_repo": "ajslater/codex",
|
||||||
"upstream_version": "2.25.0"
|
"upstream_version": "1.4.3"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user