Add common module managing common services and scripts (act_runner, create/restore backups)

Fix script environment variables
Add Fefan configuration
Fix gateway services file provisionning through ssh
This commit is contained in:
2026-01-20 15:42:17 +01:00
parent 152f09ac50
commit 1de2fe9ab4
53 changed files with 285 additions and 442 deletions

View File

@@ -1,20 +1,32 @@
# Environment files
ENV_FILE_LOCATION=/opt/environment/.env
# gitea act_runner
ACT_RUNNER_VERSION=0.2.13
ACT_RUNNER_LOCATION=/usr/local/bin
ACT_RUNNER_USER=act_runner
ENV_FILE_LOCATION=/opt/bookshelf/bookshelf.env
GITEA_INSTANCE_URL=https://gitea.aldon.fr
GITEA_RUNNER_REGISTRATION_TOKEN=<gitea-repository-runner-token>
GITEA_BOOKSHELF_APPLICATION_TOKEN=<gitea-auth-token>
GITEA_BOOKSHELF_REPOSITORY=mop/bookshelf
USERNAME=bookshelf
BOOKSHELF_BACKUPS_DIR=/backups/bookshelf
BOOKSHELF_BACKUP_PREFIX=bookshelf-dump
# gitea instance
GITEA_INSTANCE_URL=https://gitea.aldon.fr
GITEA_SERVICE_APPLICATION_TOKEN=<gitea-auth-token>
GITEA_SERVICE_REPOSITORY=mop/bookshelf
GITEA_WORKFLOW_NAME=deploy.yaml
# Applicaiton specifics
MARIADB_USER=bookshelf
MARIADB_PASSWORD=<mariadb-password>
MARIADB_DATABASE=Biblio
MARIADB_ROOT_PASSWORD=<mariadb-root-password>
SERVICE_SECRET_KEY=<bookshelf-secret-key>
SERVICE_ORIGIN=https://bookshelf.aldon.fr
SERVICE_ROOT_FQDN=https://bookshelf.aldon.fr/api
SERVICE_ROOT_FQDN=https://bookshelf.aldon.fr/api
SERVICE_DATABASE_CONTAINER_NAME=bookshelf-database-1
# VM
USERNAME=bookshelf
# Backup specifics
SERVICE_BACKUPS_DIR=/backups/bookshelf
SERVICE_BACKUPS_PREFIX=bookshelf-dump
SERVICE_BACKUPS_EXTENSION=sql