Fichiers de configuration du serveur Coh@bit.
Go to file
2024-06-05 21:39:08 +02:00
caddy fix: force cache update for caddy sources 2024-06-05 21:12:41 +02:00
fail2ban feat: add empty TODO scripts to suppress tests errors 2024-06-05 20:40:18 +02:00
fastfetch feat: add empty TODO scripts to suppress tests errors 2024-06-05 20:40:18 +02:00
forgejo fix: patch recursive cp in deploy scripts 2024-06-05 18:39:47 +02:00
iptables fix: patch relative paths in services install/deploy scripts 2024-05-30 13:39:34 +02:00
portfolio_server fix: install service before cd in portfolio_server deploy 2024-06-05 20:27:48 +02:00
sshd fix: patch relative paths in services install/deploy scripts 2024-05-30 13:39:34 +02:00
vim fix: patch recursive cp in deploy scripts 2024-06-05 18:39:47 +02:00
website fix: typo in systemctl cmd in _deploy.sh 2024-05-30 13:43:29 +02:00
wireguard feat: add empty TODO scripts to suppress tests errors 2024-06-05 20:40:18 +02:00
zsh fix: patch fp alias by replacing bat with batcat 2024-06-05 21:39:08 +02:00
.env.example feat: provide .env file with matcher replace for config secrets 2024-05-30 15:12:12 +02:00
.env.gpg chore: commit encrypted .env secrets 2024-05-30 17:47:08 +02:00
.gitignore feat: provide .env file with matcher replace for config secrets 2024-05-30 15:12:12 +02:00
_requirements.sh fix: path install and init of zoxide on debian 2024-06-05 19:08:46 +02:00
deploy.sh fix: reset working directory at each step 2024-06-05 18:10:40 +02:00
install.sh fix: reset working directory at each step 2024-06-05 18:10:40 +02:00
load_secrets.sh fix: missing flag for overwritting files with sed 2024-05-30 18:02:01 +02:00
README.md doc: update general usage snippet 2024-05-30 17:52:28 +02:00

Server Config

Fichiers de configuration du serveur Coh@bit.

Usage général

Cloner ce dépôts sur votre système (pas de répertoire privilégié).

# Clone repository
git clone https://git.cohabit.fr/cohabit/server_config.git
cd server_config

# Decrypt secrets
gpg -d .env.gpg > .env

# Allow execute scripts
sudo chmod +x ./install.sh
sudo chmod +x ./deploy.sh

# Install and deploy services
sudo ./install.sh --all && sudo ./deploy.sh --all

Warning

Après avoir executer deploy.sh tous les secrets sont écrits en clair dans les fichiers de configs et les scripts.
Ne surtout pas faire de git commit ou de git push.
Pour retourner à l'état d'origine faire un git reset --hard HEAD ou équivalent.

Installation

Pour installer les différents services/apps du serveur.

Usage

sudo (bash|sh|zsh) ./install.sh [SERVICES...]

Examples

  • Install caddy and iptables.
    sudo ./install.sh caddy iptables
    
  • Install all services.
    sudo ./install.sh -a
    

Déploiement

Pour déployer les différents services/apps dur serveur.

Nécessite d'avoir installer les services au préalable.

Usage

sudo (bash|sh|zsh) ./deploy.sh [SERVICES...]

Examples

  • Install caddy and iptables.
    sudo ./deploy.sh caddy iptables
    
  • Install all services.
    sudo ./deploy.sh -a