/
home
/
techb158
/
trello-import.abdallabala.com
/
docker
/
/home/techb158/trello-import.abdallabala.com/docker
mkdir
upload
Name
Size
Mode
Actions
nginx.conf
684
0644
edit
dl
rm
render-config.sh
607
0644
edit
dl
rm
Edit:
/home/techb158/trello-import.abdallabala.com/docker/render-config.sh
(607B)
#!/bin/sh set -eu : "${TRELLO_APP_KEY:=REPLACE_WITH_YOUR_TRELLO_POWERUP_API_KEY}" : "${TRELLO_APP_NAME:=Import JSON/CSV}" : "${TRELLO_APP_AUTHOR:=Your Name or Company}" : "${TRELLO_APP_VERSION:=1.0.0}" escape_js_string() { printf '%s' "$1" | sed "s/\\\\/\\\\\\\\/g; s/\"/\\\\\"/g" } cat > /usr/share/nginx/html/js/config.js <<EOF_CONFIG window.TRELLO_IMPORT_CONFIG = { appKey: "$(escape_js_string "$TRELLO_APP_KEY")", appName: "$(escape_js_string "$TRELLO_APP_NAME")", appAuthor: "$(escape_js_string "$TRELLO_APP_AUTHOR")", appVersion: "$(escape_js_string "$TRELLO_APP_VERSION")" }; EOF_CONFIG
Save
cmd:
run