10 Commits

Author SHA1 Message Date
github-actions
e65858ced9 GitHub bot: changelog 2025-11-22 15:56:15 +00:00
Alexandre
8d3c7967cc Merge pull request #2224 from alexbelgium/codex/fix-meilisearch-exit-code-127-issue
Align Meilisearch option naming with HA conventions
2025-11-22 15:51:57 +00:00
Alexandre
8ee008a7f4 Align Meilisearch option naming with HA conventions 2025-11-22 15:50:58 +00:00
Alexandre
d7d9eab569 Merge pull request #2223 from mausland/patch-1
Fix Scrutiny config example: Add required 'env_vars'
2025-11-22 15:44:47 +00:00
Michael Auslander
b2e379e096 Fix Scrutiny config example: Add required 'env_vars'
Added clarification on env_vars

The current example causes a 'Missing option env_vars' error on save. Added env_vars: [] to fix validation.
2025-11-22 10:39:46 -05:00
Alexandre
e4225fc3c7 Update version format in config.yaml 2025-11-22 15:37:55 +00:00
github-actions
61952516b0 GitHub bot: changelog 2025-11-22 14:04:17 +00:00
Alexandre
f49c75b756 Hide warnings
Update config.yaml handling
2025-11-22 14:01:30 +00:00
Alexandre
ebc9b59caa Update config.yaml handling 2025-11-22 14:00:26 +00:00
Alexandre
654ee3b5e9 Update config.yaml 2025-11-22 13:45:04 +00:00
10 changed files with 42 additions and 39 deletions

View File

@@ -72,8 +72,8 @@ if [[ "$CONFIGSOURCE" != *".yaml" ]]; then
exit 1
fi
# Permissions
if [[ "$CONFIGSOURCE" == *".yaml" ]]; then
# Permissions only if the config file already exists
if [[ "$CONFIGSOURCE" == *".yaml" ]] && [ -f "$CONFIGSOURCE" ]; then
echo "Setting permissions for the config.yaml directory"
mkdir -p "$(dirname "${CONFIGSOURCE}")"
chmod -R 755 "$(dirname "${CONFIGSOURCE}")" 2> /dev/null
@@ -83,6 +83,24 @@ fi
# LOAD CONFIG.YAML #
####################
# Exit if the config file is absent
if [ ! -f "$CONFIGSOURCE" ]; then
exit 0
fi
# Check if there are lines to read
cp "$CONFIGSOURCE" /tempenv
sed -i '/^#/d' /tempenv
sed -i '/^[[:space:]]*$/d' /tempenv
sed -i '/^$/d' /tempenv
echo "" >> /tempenv
# Exit if empty
if [ ! -s /tempenv ]; then
rm /tempenv
exit 0
fi
echo ""
bashio::log.green "Load environment variables from $CONFIGSOURCE if existing"
if [[ "$CONFIGSOURCE" == "/config"* ]]; then
@@ -95,35 +113,6 @@ bashio::log.notice "This script is used to export custom environment variables a
bashio::log.warning "This methodology is deprecated, please convert your Environment variables to the addon options env_vars. Instructions can be found here : https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2"
echo ""
# Check if config file is there, or create one from template
if [ ! -f "$CONFIGSOURCE" ]; then
echo "... no config file, creating one from template. Please customize the file in $CONFIGSOURCE before restarting."
# Create folder
mkdir -p "$(dirname "${CONFIGSOURCE}")"
# Placing template in config
if [ -f /templates/config.yaml ]; then
# Use available template
cp /templates/config.yaml "$(dirname "${CONFIGSOURCE}")"
else
# Download template
TEMPLATESOURCE="https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/config.template"
curl -f -L -s -S "$TEMPLATESOURCE" --output "$CONFIGSOURCE"
fi
fi
# Check if there are lines to read
cp "$CONFIGSOURCE" /tempenv
sed -i '/^#/d' /tempenv
sed -i '/^[[:space:]]*$/d' /tempenv
sed -i '/^$/d' /tempenv
echo "" >> /tempenv
# Exit if empty
if [ ! -s /tempenv ]; then
bashio::log.green "... no env variables found, exiting"
exit 0
fi
# Check if yaml is valid
EXIT_CODE=0
yamllint -d relaxed /tempenv &> ERROR || EXIT_CODE=$?

View File

@@ -1,3 +1,5 @@
## 2.3.1-2 (22-11-2025)
- Minor bugs fixed
## 2.3.1 (22-11-2025)
- Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases)

View File

@@ -141,6 +141,6 @@ slug: immich
udev: true
url: https://github.com/alexbelgium/hassio-addons
usb: true
version: "2.3.1"
version: 2.3.1-2
video: true
webui: http://[HOST]:[PORT:8080]

View File

@@ -1,3 +1,5 @@
## 2.3.1-2 (22-11-2025)
- Minor bugs fixed
## 2.3.1 (22-11-2025)
- Update to latest version from imagegenius/docker-immich (changelog : https://github.com/imagegenius/docker-immich/releases)

View File

@@ -4,8 +4,7 @@ arch:
backup_exclude:
- "**/machine-learning/*"
description:
Self-hosted photo and video backup solution directly from your mobile
phone
Self-hosted photo and video backup solution directly from your mobile phone
devices:
- /dev/dri
- /dev/dxg
@@ -141,6 +140,6 @@ slug: immich_noml
udev: true
url: https://github.com/alexbelgium/hassio-addons
usb: true
version: "2.3.1"
version: 2.3.1-2
video: true
webui: http://[HOST]:[PORT:8080]

View File

@@ -1,3 +1,9 @@
## v5.0_beta5-6 (17-11-2025)
- Rename the Meilisearch configuration option to `meilisearch_key` and align schema/options with Home Assistant add-on best practices.
## v5.0_beta5-5 (16-11-2025)
- Add a configurable `MEILISEARCH_KEY` option so the bundled Meilisearch can be secured (or left blank to disable auth) without relying on custom env vars.
## v5.0_beta5-4 (15-11-2025)
- Increment version for rebuilt add-on
## v5.0_beta5-3 (15-11-2025)

View File

@@ -105,7 +105,7 @@ Configure SMTP settings to enable:
This addon supports custom scripts and environment variables through the `addon_config` mapping:
- **Meilisearch full-text search**: The addon ships with an embedded [Meilisearch](https://www.meilisearch.com/) service that Monica uses by default. The search API listens on `http://127.0.0.1:7700` inside the container. Override `MEILISEARCH_URL` via `env_vars` if you prefer an external Meilisearch instance—the init script will detect that and skip starting the bundled daemon. You can further tweak Meilisearch by defining extra environment variables through the `env_vars` option if needed.
- **Meilisearch full-text search**: The addon ships with an embedded [Meilisearch](https://www.meilisearch.com/) service that Monica uses by default. The search API listens on `http://127.0.0.1:7700` inside the container. Override `MEILISEARCH_URL` via `env_vars` if you prefer an external Meilisearch instance—the init script will detect that and skip starting the bundled daemon. You can further tweak Meilisearch by defining extra environment variables through the `env_vars` option if needed. To secure (or disable) Meilisearch authentication without custom env vars, set the `meilisearch_key` add-on option; the init script will pass it to both Monica and the bundled Meilisearch instance.
- **Custom scripts**: See [Running Custom Scripts in Addons](https://github.com/alexbelgium/hassio-addons/wiki/Running-custom-scripts-in-Addons)
- **env_vars option**: Use the add-on `env_vars` option to pass extra environment variables (uppercase or lowercase names). See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.

View File

@@ -70,12 +70,13 @@ environment:
SCOUT_DRIVER: meilisearch
SCOUT_QUEUE: "false"
MEILISEARCH_URL: http://127.0.0.1:7700
MEILISEARCH_KEY: ""
MEILISEARCH_KEY: "{{meilisearch_key}}"
image: ghcr.io/alexbelgium/monica-{arch}
init: false
options:
env_vars: []
database: sqlite
meilisearch_key: ""
map:
- type: addon_config
read_only: false
@@ -95,6 +96,7 @@ schema:
DB_PASSWORD: str?
DB_PORT: int?
DB_USERNAME: str?
meilisearch_key: password?
MAIL_MAILER: str?
MAIL_HOST: str?
MAIL_PORT: str?
@@ -107,5 +109,5 @@ services:
- mysql:want
slug: monica
url: https://github.com/alexbelgium/hassio-addons/tree/master/monica
version: v5.0_beta5-4
version: v5.0_beta5-6
webui: "[PROTO:ssl]://[HOST]:[PORT:80]"

View File

@@ -143,7 +143,9 @@ if [[ "${MEILISEARCH_LOCAL}" == true ]]; then
MEILISEARCH_DB_PATH="/data/meilisearch"
mkdir -p "${MEILISEARCH_DB_PATH}"
MEILISEARCH_ENV_KEY="${MEILISEARCH_KEY:-}"
MEILISEARCH_ENV_KEY="$(bashio::config 'meilisearch_key')"
MEILISEARCH_KEY="${MEILISEARCH_ENV_KEY}"
export MEILISEARCH_KEY
MEILISEARCH_ENVIRONMENT="${MEILI_ENV:-production}"
MEILISEARCH_NO_ANALYTICS="${MEILI_NO_ANALYTICS:-true}"

View File

@@ -46,6 +46,7 @@ It automatically mounts all local drives.
Enable full access only if you are encountering issues. SMART access should work without full access in all other scenarios.
```yaml
env_vars: [] # Required field, leave empty if unused
Updates: Hourly, Daily, Weekly
Updates_custom_time : if you select "Custom" as "Updates" variable, you can define specific updates in natural language in the "Updates_custom_time" field. Example : select "Custom" as "Updates", then type a custom intervals like "5m", "2h", "1w", or "2mo" to have an update every 5 minutes, or every 2 hours, or evey week, or every 2 months
TZ: timezone