Files
linux-install-helper/affine/env.sh

55 lines
1.4 KiB
Bash
Raw Normal View History

# select a revision to deploy, available values: stable, beta, canary
AFFINE_REVISION=stable
NETWORK="affine_net"
2025-05-04 21:06:49 +02:00
DOMAIN="notedev.jamesvillage.dev"
2025-05-04 16:36:45 +02:00
# set the port for the server container it will expose the server on
AFFINE_PORT=3010
# set the host for the server for outgoing links
# AFFINE_SERVER_HTTPS=true
# AFFINE_SERVER_HOST=affine.yourdomain.com
# or
# AFFINE_SERVER_EXTERNAL_URL=https://affine.yourdomain.com
# position of the database data to persist
2025-05-04 21:06:49 +02:00
AFFINE_ROOT="$HOME/.affine"
DB_DATA_LOCATION=$HOME/.affine/self-host/postgres/pgdata
# position of the upload data(images, files, etc.) to persist
UPLOAD_LOCATION=$HOME/.affine/self-host/storage
# position of the configuration files to persist
CONFIG_LOCATION=$HOME/.affine/self-host/config
2025-05-04 16:36:45 +02:00
# mailer
SMTP_HOST=""
SMTP_FROM=""
SMTP_PORT="587"
SMTP_USERNAME=""
SMTP_PASSWORD=""
REDIS_SERVER_HOST="host.containers.internal"
REDIS_SERVER_PORT="6379"
DATABASE_HOST="host.containers.internal"
DATABASE_PORT="5432"
# database credentials
DB_USERNAME=affine
DB_PASSWORD=
DB_DATABASE=affine
CONTAINER_PREFIX="affine"
CONTAINER_REDIS="affine_redis"
CONTAINER_POSTGRES="affine_postgres"
2025-05-04 16:36:45 +02:00
CONTAINER_SERVER="affine_server"
USER_SYSTEMD="$HOME/.config/systemd/user"
SSL_PATH=$HOME/.config/ssl/$DOMAIN
HAPROXY_CFG_DIR="/etc/haproxy"
HAPROXY_CFG="$HAPROXY_CFG_DIR/haproxy.cfg"
2025-05-04 21:06:49 +02:00
SERVICE_DIR="$HAPROXY_CFG_DIR/services/$DOMAIN"
BACKUP_REMOTE="onedrive-tianyu:Backups/affine"