server_config/README.md

65 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-29 14:19:50 +02:00
# Server Config
2024-05-06 18:58:15 +02:00
2024-05-29 14:19:50 +02:00
Fichiers de configuration du serveur Coh@bit.
2024-05-29 14:20:41 +02:00
## Usage général
2024-05-29 14:19:50 +02:00
Cloner ce dépôts sur votre système (pas de répertoire privilégié).
```sh
# Clone repository
git clone https://git.cohabit.fr/cohabit/server_config.git
cd server_config
# 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
```
2024-05-29 14:19:50 +02:00
## Installation
2024-05-29 14:20:41 +02:00
Pour installer les différents services/apps du serveur.
2024-05-29 14:19:50 +02:00
### Usage
```sh
sudo (bash|sh|zsh) ./install.sh [SERVICES...]
```
### Examples
2024-05-29 14:20:41 +02:00
- Install `caddy` and `iptables`.
2024-05-29 14:19:50 +02:00
```sh
sudo ./install.sh caddy iptables
```
2024-05-29 14:20:41 +02:00
- Install all services.
2024-05-29 14:19:50 +02:00
```sh
sudo ./install.sh -a
2024-05-29 14:19:50 +02:00
```
## Déploiement
Pour déployer les différents services/apps dur serveur.
Nécessite d'avoir [installer les services](#installation) au préalable.
### Usage
```sh
sudo (bash|sh|zsh) ./deploy.sh [SERVICES...]
```
### Examples
2024-05-29 14:20:41 +02:00
- Install `caddy` and `iptables`.
2024-05-29 14:19:50 +02:00
```sh
sudo ./deploy.sh caddy iptables
```
2024-05-29 14:20:41 +02:00
- Install all services.
2024-05-29 14:19:50 +02:00
```sh
sudo ./deploy.sh -a
2024-05-29 14:19:50 +02:00
```