Nouvelle route /report pour la création de ticket #1
62
README.md
62
README.md
@ -17,33 +17,36 @@ Mini-app Flask remplaçant les CGI scripts de `scodoc.iutv`.
|
||||
## Installation
|
||||
|
||||
1. Créer un utilisateur
|
||||
|
||||
adduser installmgr
|
||||
```bash
|
||||
adduser installmgr
|
||||
```
|
||||
|
||||
2. Cloner le dépot
|
||||
|
||||
cd /opt
|
||||
git clone https://scodoc.org/git/viennet/installmgr.git
|
||||
chown -R installmgr installmgr
|
||||
```bash
|
||||
git clone https://scodoc.org/git/ScoDoc/installmgr.git /opt/installmgr
|
||||
chown -R installmgr:installmgr /opt/installmgr
|
||||
```
|
||||
|
||||
3. Créer l'environnement
|
||||
|
||||
su - installmgr
|
||||
cd /opt/installmgr
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install wheel
|
||||
pip install -r requirements.txt
|
||||
```bash
|
||||
su - installmgr
|
||||
cd /opt/installmgr
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install wheel
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
4. Créer les répertoires
|
||||
|
||||
mkdir incoming_dumps
|
||||
# et éventuellement:
|
||||
echo 1000 > counter
|
||||
```bash
|
||||
mkdir incoming_dumps
|
||||
# et éventuellement:
|
||||
echo 1000 > counter
|
||||
```
|
||||
|
||||
5. Configurer nginx
|
||||
|
||||
location /scodoc-installmgr {
|
||||
```nginx
|
||||
location /scodoc-installmgr {
|
||||
# forward application requests to the gunicorn server
|
||||
proxy_pass http://localhost:8010;
|
||||
proxy_redirect off;
|
||||
@ -53,19 +56,18 @@ Mini-app Flask remplaçant les CGI scripts de `scodoc.iutv`.
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_connect_timeout 120;
|
||||
client_max_body_size 100m;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
6. Installer le service
|
||||
|
||||
cp etc/installmgr.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl start installmgr
|
||||
|
||||
```bash
|
||||
cp etc/installmgr.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
systemctl start installmgr
|
||||
```
|
||||
7. Tester
|
||||
|
||||
Depuis un client extérieur,
|
||||
|
||||
http https://scodoc.org/scodoc-installmgr/last_stable_version
|
||||
|
||||
```bash
|
||||
http https://scodoc.org/scodoc-installmgr/last_stable_version
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user