forked from cohabit/server_config
65 lines
1.1 KiB
Markdown
65 lines
1.1 KiB
Markdown
# 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é).
|
|
|
|
```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 * && sudo ./deploy.sh *
|
|
```
|
|
|
|
## Installation
|
|
|
|
Pour installer les différents services/apps du serveur.
|
|
|
|
### Usage
|
|
|
|
```sh
|
|
sudo (bash|sh|zsh) ./install.sh [SERVICES...]
|
|
```
|
|
|
|
### Examples
|
|
|
|
- Install `caddy` and `iptables`.
|
|
```sh
|
|
sudo ./install.sh caddy iptables
|
|
```
|
|
- Install all services.
|
|
```sh
|
|
sudo ./install.sh *
|
|
```
|
|
|
|
## 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
|
|
|
|
- Install `caddy` and `iptables`.
|
|
```sh
|
|
sudo ./deploy.sh caddy iptables
|
|
```
|
|
- Install all services.
|
|
```sh
|
|
sudo ./deploy.sh *
|
|
```
|