18-04-2020

This commit is contained in:
2020-04-18 07:23:09 +02:00
parent 32bfa1a628
commit 7e64b5c348
12 changed files with 436 additions and 101 deletions

View File

@@ -33,6 +33,16 @@ root@DS916:~#
### Taches panifiée:
Exécuter un script par un utilisateur xxx: ici le script cron.php de Nextcloud doit être lancé par http
```bash
sudo -u http /usr/local/bin/php73 -f /volume1/web/nextcloud/cron.php
```
### Services:
#### Afficher la liste des services
@@ -307,8 +317,8 @@ root@DS916:/volume1/@appstore/PHP7.0/misc# nano extension_list.json
/bin/php
- PHP 5.6 (Package PHP 5)
/usr/local/bin/php56
- PHP 7.0 (Package PHP 7)
/usr/local/bin/php70
- PHP 7.3 (Package PHP 7)
/usr/local/bin/php73
Pour Apache, c'est la version choisie dans WebStation qui est active.
@@ -454,90 +464,6 @@ 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