forked from ow/samsung-frame-art
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump Tolgee version to 1.1 and simplify run script by removing SSL co…
…nfiguration
- Loading branch information
1 parent
ea3c22c
commit 6fc473d
Showing
2 changed files
with
1 addition
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |