fixed readme

This commit is contained in:
2021-05-10 16:10:47 +02:00
parent 194fc828dc
commit 869e6ccc7b
+22 -3
View File
@@ -21,8 +21,28 @@ add to your /etc/hosts :
``` ```
127.0.0.1 dev.figureslibres.cc 127.0.0.1 dev.figureslibres.cc
``` ```
configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container configure your vhosts to add a reverse proxy that will redirect the domain dev.figureslibres.com to our container
### nginx
```nginx
server {
listen 80;
server_name dev.figureslibres.io;
location / {
proxy_pass http://127.0.0.1:8882;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
``` ```
### Apache
```apache
<Virtualhost *:80> <Virtualhost *:80>
ServerName dev.figuresmibres.cc ServerName dev.figuresmibres.cc
ProxyPass / http://127.0.0.1:8882/ ProxyPass / http://127.0.0.1:8882/
@@ -48,7 +68,7 @@ then each time you want to launch the app
``` ```
sudo docker-compose up -d sudo docker-compose up -d
``` ```
### loging in ### login the php environement to user the grav cli tools
``` ```
sudo docker exec -it grav_figureslibres.cc_php_1 bash sudo docker exec -it grav_figureslibres.cc_php_1 bash
``` ```
@@ -63,4 +83,3 @@ chmod +x fixperms.sh
## Visualize ## Visualize
You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser
After the first run