Ansible project to manage my services. https://viyurz.fr
Find a file
2024-10-15 09:39:23 +02:00
playbooks [playbooks] update-services.yml: Don't ask to update 2024-07-06 10:50:15 +02:00
projects Migrate PostgreSQL to Podman 2024-10-14 17:38:10 +02:00
roles Remove Element 2024-10-13 10:14:19 +02:00
.gitignore Migration to Podman & Python script, start 2024-10-01 09:52:42 +02:00
ansible-playbook-selector.sh The Great Ansible Update. 2024-02-17 19:01:04 +01:00
ansible.cfg The Great Ansible Update. 2024-02-17 19:01:04 +01:00
env.yml [ansible] I forgor 2024-10-15 09:39:23 +02:00
fstab [manage.py] Add borgbackup 2024-10-07 16:57:45 +02:00
manage.py Migrate PostgreSQL to Podman 2024-10-14 17:38:10 +02:00
monitoring.py [monitoring] Update thresholds 2024-09-21 12:27:20 +02:00
monitoring.service Add monitoring.service 2024-10-01 14:46:22 +02:00
nftables.conf.mako [manage.py] Add setNftables() & sudoRun() 2024-10-01 13:44:53 +02:00
psql-create-db-user.sh Add script to create PostgreSQL user/database. 2024-03-30 17:23:15 +01:00
pyenv.yml Migrate PostgreSQL to Podman 2024-10-14 17:38:10 +02:00
pysecrets.yml.example Migrate Etebase to python 2024-10-14 09:55:00 +02:00
README.md Update README 2024-10-08 20:56:26 +02:00
secrets.yml.example Added DIUN 2024-09-07 10:16:47 +02:00
setup.sh [manage.py] Add borgbackup 2024-10-07 16:57:45 +02:00

vps

This repository contains all the files I use to manage my services hosted on viyurz.fr.

Requirements

Initial setup

Run the setup script:

./setup.sh

SSL certificates

Install Certbot:

sudo apt install -y certbot python3-certbot-dns-ovh python3-certbot-nginx

Request certificates:

# For the NGINX reverse proxy
sudo certbot certonly --nginx -d viyurz.fr,*.viyurz.fr

# For Coturn
bash <(wget -q -O - https://github.com/zerossl/zerossl-bot/raw/master/get-zerosslbot.sh)
sudo zerossl-bot certonly --nginx -m viyurz@viyurz.fr -d turn.viyurz.fr

# For the mailserver
sudo certbot certonly --nginx -d mail.viyurz.fr

Secrets

Copy the existing secrets.yml.example file to secrets.yml and fill the variables.

Storagebox

Add credential:

/etc/storagebox-cifs-credentials.txt
---
username=MYUSERNAME
password=MYPASSWORD

Copy the file fstab and edit it accordingly (username and potentially uids/gids).

Backups

Create a cronjob to periodically backup all projects:

0 4 * * * /home/viyurz/vps/manage.py backup ''