Customers can view and cancel their booking through a link in the e-mail. Fixes #18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -64,6 +64,7 @@ load_env() {
|
||||
NETWORK="$PREFIX"
|
||||
CUSTOMER_MAX_CONNECTIONS="${CUSTOMER_MAX_CONNECTIONS:-5}"
|
||||
BASE_PORT="${BASE_PORT:-3100}"
|
||||
TIME_ZONE="${REZERVATOR_TZ:-Europe/Prague}"
|
||||
|
||||
case "$PROXY" in traefik|nginx) ;; *) die "REZERVATOR_PROXY must be traefik or nginx" ;; esac
|
||||
case "$POSTGRES" in container|host) ;; *) die "REZERVATOR_POSTGRES must be container or host" ;; esac
|
||||
@@ -230,6 +231,8 @@ run_container() {
|
||||
--network "$NETWORK"
|
||||
--volume "$CUSTOMERS_DIR/$name/config.toml:/app/config/config.toml:ro"
|
||||
--volume "$(volume_name "$name"):/app/data"
|
||||
# Times of bookings are local times; the deadline for cancelling is compared with the clock
|
||||
--env "TZ=$TIME_ZONE"
|
||||
--label "rezervator.stack=$PREFIX"
|
||||
--label "rezervator.customer=$name"
|
||||
--label "rezervator.domain=$domain"
|
||||
@@ -392,6 +395,7 @@ SQL
|
||||
-e "s|@DB_PORT@|$PG_PORT|" \
|
||||
-e "s|@MAX_CONNECTIONS@|$CUSTOMER_MAX_CONNECTIONS|" \
|
||||
-e "s|@MAIL_FROM@|$mail_from|" \
|
||||
-e "s|@DOMAIN@|$domain|" \
|
||||
"$DEPLOY_DIR/config.template.toml" > "$dir/config.toml"
|
||||
# The directory is closed to other users; the application in the container must be able to read the file
|
||||
chmod 644 "$dir/config.toml"
|
||||
|
||||
Reference in New Issue
Block a user