Adjust forwarded allow IPs option visibility

This commit is contained in:
Alexandre
2025-12-05 16:07:14 +01:00
parent f325ec908d
commit a2a98c8bdb
4 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,12 @@
- The Home Assistant project has deprecated support for the armv7, armhf and i386 architectures. Support wil be fully dropped in the upcoming Home Assistant 2025.12 release
## v3.5.2 (06-12-2025)
- Document `FORWARDED_ALLOW_IPS` as an advanced option without exposing it in the default options tab
## v3.5.1 (06-12-2025)
- Allow configuring Gunicorn's `--forwarded-allow-ips` value to support OIDC behind reverse proxies
## v3.5.0 (15-11-2025)
- Update to latest version from mealie-recipes/mealie (changelog : https://github.com/mealie-recipes/mealie/releases)
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.

View File

@@ -58,6 +58,8 @@ Configurations can be done through the app webUI, except for the following optio
| `DATA_DIR` | str | `/config` | Data directory path |
| `ALLOW_SIGNUP` | bool | `true` | Allow new user signup |
To configure Gunicorn's `--forwarded-allow-ips` setting for trusted reverse proxies, manually add a `FORWARDED_ALLOW_IPS` entry to your add-on configuration (comma-separated IPs). It is optional and hidden from the default options tab.
### Example Configuration
```yaml

View File

@@ -103,6 +103,7 @@ schema:
- name: match(^[A-Za-z0-9_]+$)
value: str?
ALLOW_SIGNUP: bool
FORWARDED_ALLOW_IPS: str?
BASE_URL: str?
DATA_DIR: str?
PGID: int
@@ -113,4 +114,4 @@ schema:
slug: mealie
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "v3.5.0"
version: "v3.5.2"

View File

@@ -63,6 +63,11 @@ cd "$DATA_DIR" || true
chown -R "$(bashio::config "PUID"):$(bashio::config "PGID")" .
echo "Permissions adapted"
if bashio::config.has_value "FORWARDED_ALLOW_IPS"; then
export FORWARDED_ALLOW_IPS="$(bashio::config "FORWARDED_ALLOW_IPS")"
bashio::log.info "Configured FORWARDED_ALLOW_IPS for Gunicorn"
fi
bashio::log.info "Starting nginx"
nginx & true