mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-19 00:34:25 -05:00
5eb3ff1598
applications/ configs/ lists/ wwwroot/
26 lines
2.2 KiB
Bash
26 lines
2.2 KiB
Bash
RUN_CMD="$RUN_CMD -address $HOSTNAME"
|
|
RUN_CMD="$RUN_CMD -db-driver sqlite3"
|
|
RUN_CMD="$RUN_CMD -db-source /data/lenpaste.db"
|
|
[ -f "/data/about" ] && RUN_CMD="$RUN_CMD -server-about /data/about"
|
|
[ -f "/data/rules" ] && RUN_CMD="$RUN_CMD -server-rules /data/rules"
|
|
[ -f "/data/terms" ] && RUN_CMD="$RUN_CMD -server-terms /data/terms"
|
|
[ -d "/data/themes" ] && RUN_CMD="$RUN_CMD -ui-themes-dir /data/themes"
|
|
[ -f "/data/lenpasswd" ] && RUN_CMD="$RUN_CMD -lenpasswd-file /data/lenpasswd"
|
|
[ "$LENPASTE_ROBOTS_DISALLOW" = "true" ] && RUN_CMD="$RUN_CMD -robots-disallow"
|
|
[ -n "$LENPASTE_ADMIN_NAME" ] && RUN_CMD="$RUN_CMD -admin-name '$LENPASTE_ADMIN_NAME'"
|
|
[ -n "$LENPASTE_ADMIN_MAIL" ] && RUN_CMD="$RUN_CMD -admin-mail '$LENPASTE_ADMIN_MAIL'"
|
|
[ -n "$LENPASTE_BODY_MAX_LENGTH" ] && RUN_CMD="$RUN_CMD -body-max-length '$LENPASTE_BODY_MAX_LENGTH'"
|
|
[ -n "$LENPASTE_TITLE_MAX_LENGTH" ] && RUN_CMD="$RUN_CMD -title-max-length '$LENPASTE_TITLE_MAX_LENGTH'"
|
|
[ -n "$LENPASTE_DB_MAX_OPEN_CONNS" ] && RUN_CMD="$RUN_CMD -db-max-open-conns '$LENPASTE_DB_MAX_OPEN_CONNS'"
|
|
[ -n "$LENPASTE_DB_MAX_IDLE_CONNS" ] && RUN_CMD="$RUN_CMD -db-max-idle-conns '$LENPASTE_DB_MAX_IDLE_CONNS'"
|
|
[ -n "$LENPASTE_DB_CLEANUP_PERIOD" ] && RUN_CMD="$RUN_CMD -db-cleanup-period '$LENPASTE_DB_CLEANUP_PERIOD'"
|
|
[ -n "$LENPASTE_MAX_PASTE_LIFETIME" ] && RUN_CMD="$RUN_CMD -max-paste-lifetime '$LENPASTE_MAX_PASTE_LIFETIME'"
|
|
[ -n "$LENPASTE_GET_PASTES_PER_5MIN" ] && RUN_CMD="$RUN_CMD -get-pastes-per-5min '$LENPASTE_GET_PASTES_PER_5MIN'"
|
|
[ -n "$LENPASTE_NEW_PASTES_PER_5MIN" ] && RUN_CMD="$RUN_CMD -new-pastes-per-5min '$LENPASTE_NEW_PASTES_PER_5MIN'"
|
|
[ -n "$LENPASTE_GET_PASTES_PER_15MIN" ] && RUN_CMD="$RUN_CMD -get-pastes-per-15min '$LENPASTE_GET_PASTES_PER_15MIN'"
|
|
[ -n "$LENPASTE_NEW_PASTES_PER_15MIN" ] && RUN_CMD="$RUN_CMD -new-pastes-per-15min '$LENPASTE_NEW_PASTES_PER_15MIN'"
|
|
[ -n "$LENPASTE_GET_PASTES_PER_1HOUR" ] && RUN_CMD="$RUN_CMD -get-pastes-per-1hour '$LENPASTE_GET_PASTES_PER_1HOUR'"
|
|
[ -n "$LENPASTE_NEW_PASTES_PER_1HOUR" ] && RUN_CMD="$RUN_CMD -new-pastes-per-1hour '$LENPASTE_NEW_PASTES_PER_1HOUR'"
|
|
[ -n "$LENPASTE_UI_DEFAULT_LIFETIME" ] && RUN_CMD="$RUN_CMD -ui-default-lifetime '$LENPASTE_UI_DEFAULT_LIFETIME'"
|
|
[ -n "$LENPASTE_UI_DEFAULT_THEME" ] && RUN_CMD="$RUN_CMD -ui-default-theme $LENPASTE_UI_DEFAULT_THEME"
|