Skip to content

Commit

Permalink
bump Tolgee version to 1.1 and simplify run script by removing SSL co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
gijsvdhoven committed Dec 27, 2024
1 parent ea3c22c commit 6fc473d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion tolgee/config.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
16 changes: 0 additions & 16 deletions tolgee/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6fc473d

Please sign in to comment.