From 6fc473d92991ae879707e4ffc5daada5ed48a79e Mon Sep 17 00:00:00 2001 From: Gijs van den Hoven Date: Fri, 27 Dec 2024 20:20:25 +0100 Subject: [PATCH] bump Tolgee version to 1.1 and simplify run script by removing SSL configuration --- tolgee/config.yaml | 2 +- tolgee/run.sh | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/tolgee/config.yaml b/tolgee/config.yaml index 8ffed18..a333d0f 100644 --- a/tolgee/config.yaml +++ b/tolgee/config.yaml @@ -1,6 +1,6 @@ # First, config.yaml name: "Tolgee" -version: "1.0" +version: "1.1" slug: "tolgee" description: "Self-hosted Tolgee localization platform" url: "https://github.com/gijsvdhoven/homeassistant-addons/tree/main/tolgee" diff --git a/tolgee/run.sh b/tolgee/run.sh index 2629168..841a70d 100644 --- a/tolgee/run.sh +++ b/tolgee/run.sh @@ -1,27 +1,11 @@ # run.sh #!/usr/bin/with-contenv bashio -bashio::log.info "Starting Tolgee..." - -# Get config values -SSL=$(bashio::config 'ssl') -CERTFILE=$(bashio::config 'certfile') -KEYFILE=$(bashio::config 'keyfile') # Basic docker run command DOCKER_CMD="docker run --rm \ -v tolgee_data:/data/ \ -p 8085:8080" -# Add SSL configuration if enabled -if [ "$SSL" = true ]; then - DOCKER_CMD="$DOCKER_CMD \ - -v /ssl/$CERTFILE:/ssl/cert.pem:ro \ - -v /ssl/$KEYFILE:/ssl/key.pem:ro \ - -e SERVER_SSL_ENABLED=true \ - -e SERVER_SSL_KEY_STORE=/ssl/cert.pem \ - -e SERVER_SSL_KEY_STORE_PASSWORD=/ssl/key.pem" -fi - # Add the image name and execute DOCKER_CMD="$DOCKER_CMD tolgee/tolgee" exec $DOCKER_CMD