Project to manage my services. https://viyurz.fr
Find a file
2025-03-18 10:40:48 +01:00
nginx Add jellyfin 2025-03-09 11:20:09 +01:00
projects Add jellyfin 2025-03-09 11:20:09 +01:00
.gitignore Annihilate ansible 2024-10-16 18:48:51 +02:00
env.yml Add jellyfin 2025-03-09 11:20:09 +01:00
fstab.part Add jellyfin 2025-03-09 11:20:09 +01:00
manage.py manage.py: Validate nftables config 2025-03-09 11:09:15 +01:00
monitoring.py monitoring: Prevent fatal exception when smb disk is not available 2025-03-11 08:33:05 +01:00
monitoring.service Add monitoring.service 2024-10-01 14:46:22 +02:00
nftables.conf.mako Update nft config 2025-03-18 10:40:48 +01:00
psql-create-db-user.sh [psql-create-db-user.sh] Switch to Podman 2024-10-16 18:52:00 +02:00
README.md Update README 2024-10-08 20:56:26 +02:00
secrets.yml.example Annihilate ansible 2024-10-16 18:48:51 +02:00
setup.sh setup.sh: Disable podman-auto-update service/timer 2024-11-01 10:05:45 +01: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 ''