Update 23-01-2020
This commit is contained in:
@@ -139,6 +139,14 @@ $ dpkg --purge dpkg-verify
|
||||
|
||||
|
||||
|
||||
### Installer manuellement un paquet .spk
|
||||
|
||||
```bash
|
||||
$ sudo synopkg install <package.spk>
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Apache:
|
||||
|
||||
#### Configuration:
|
||||
@@ -382,6 +390,10 @@ Additional .ini files parsed: /usr/local/etc/php70/conf.d/SYNO.SDS.PhotoSta
|
||||
|
||||
|
||||
|
||||
### php7.3
|
||||
|
||||
|
||||
|
||||
### Composer:
|
||||
|
||||
<u>Installation:</u>
|
||||
@@ -442,6 +454,90 @@ You are already using composer version 1.7.1 (stable channel).
|
||||
|
||||
|
||||
|
||||
### 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
|
||||
<VirtualHost *:80>
|
||||
ProxyPreserveHost On
|
||||
ProxyRequests off
|
||||
ProxyPass / http://localhost:3000/
|
||||
ProxyPassReverse / http://localhost:3000/
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
### Erreurs:
|
||||
|
||||
/bin/nano
|
||||
|
||||
Reference in New Issue
Block a user