2023-03-06 19:30:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-03-06 19:56:45 +00:00
|
|
|
set -e
|
2023-03-06 19:30:56 +00:00
|
|
|
|
|
|
|
export NEXTCLOUD_FQDN="$NEXTCLOUD_HOSTNAME.$DOMAIN_NAME"
|
|
|
|
export BTCPAY_USER_FQDN="$BTCPAY_HOSTNAME_IN_CERT.$DOMAIN_NAME"
|
|
|
|
export WWW_FQDN="$WWW_HOSTNAME.$DOMAIN_NAME"
|
|
|
|
export GITEA_FQDN="$GITEA_HOSTNAME.$DOMAIN_NAME"
|
|
|
|
export NOSTR_FQDN="$NOSTR_HOSTNAME.$DOMAIN_NAME"
|
|
|
|
export ADMIN_ACCOUNT_USERNAME="info"
|
|
|
|
export CERTIFICATE_EMAIL_ADDRESS="$ADMIN_ACCOUNT_USERNAME@$DOMAIN_NAME"
|
2023-04-07 14:20:15 +00:00
|
|
|
|
|
|
|
|
2023-04-02 13:28:42 +00:00
|
|
|
export REMOTE_GHOST_PATH="$REMOTE_DATA_PATH/ghost"
|
|
|
|
export REMOTE_NEXTCLOUD_PATH="$REMOTE_DATA_PATH/nextcloud"
|
|
|
|
export REMOTE_GITEA_PATH="$REMOTE_DATA_PATH/gitea"
|
|
|
|
export REMOTE_CLAMS_PATH="$REMOTE_DATA_PATH/clams"
|
2023-03-06 19:30:56 +00:00
|
|
|
|
|
|
|
SHASUM_OF_DOMAIN="$(echo -n "$DOMAIN_NAME" | sha256sum | awk '{print $1;}' )"
|
|
|
|
export DOMAIN_IDENTIFIER="${SHASUM_OF_DOMAIN: -6}"
|
|
|
|
echo "$DOMAIN_IDENTIFIER" > "$SITE_PATH/domain_id"
|
|
|
|
|
|
|
|
export LANGUAGE_CODE_COUNT=$(("$(echo "$SITE_LANGUAGE_CODES" | tr -cd , | wc -c)"+1))
|
|
|
|
|
|
|
|
STACK_NAME="$DOMAIN_IDENTIFIER-en"
|
|
|
|
export NEXTCLOUD_STACK_TAG="nextcloud-$STACK_NAME"
|
|
|
|
export NEXTCLOUD_DB_STACK_TAG="nextclouddb-$STACK_NAME"
|