### Gitea: ##### Créer le paquet: [Gitea-spk](https://github.com/flipswitchingmonkey/gitea-spk) ##### Installer le paquet: ```bash cd ~/git/gitea-spk/ sudo synopkg install gitea-1.10.3-linux-amd64.spk ``` Créer un dossier partagé `gitea`, puis éditer les permissions du dossier: Permissions -> Utilisateurs du système interne -> gitea lecture /écriture ##### Accéder au site: http://localhost:3000 . Si Safari ne peut y accéder parce que la connexion n'est pas sécurisée (*HSTS Policy*): 1. `command + ,` 2. **Confidentialité** -> **Gérer les données de sites web**... 3. Chercher *localhost* 4. Clic **Supprimer** DSM -> Portail des applications -> Proxy inversé | | Source | Destination | | ---------- | -------------------- | ----------- | | Protocole | HTTPS | HTTP | | Nom d'hôte | clicclac.synology.me | localhost | | Port | 3001 | 3000 | Apache: ```bash ProxyPreserveHost On ProxyRequests off ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ ``` Nginx: ```bash server { listen 80; server_name git.example.com; location / { proxy_pass http://localhost:3000; } } ``` Le fichier de config: `/usr/local/gitea/gitea/custom/conf/app.ini` `/etc/gitea/app.ini` sur le vps mbv ##### Créer un repo sur sur le serveur gitea: Il est placé ici: `/volume1/gitea/gitea/gitea-repositories/bruno/test.git` Sur le client, on clone le repo: ```bash $ ~/Documents/Git git clone bruno@dsm916e:/volume1/gitea/gitea/gitea-repositories/bruno/test.git ``` git remote add origin bruno@dsm916e:/volume1/Repositories/wp2012.git