From 869e6ccc7bc3ff8b105d284b5607fa74af6f0834 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 10 May 2021 16:10:47 +0200 Subject: [PATCH] fixed readme --- README.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 91ec4c9..3bace18 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,28 @@ add to your /etc/hosts : ``` 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 ServerName dev.figuresmibres.cc 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 ``` -### loging in +### login the php environement to user the grav cli tools ``` sudo docker exec -it grav_figureslibres.cc_php_1 bash ``` @@ -63,4 +83,3 @@ chmod +x fixperms.sh ## Visualize You can now visit http://dev.figureslibres.cc or simply http://localhost:8882 on your browser -After the first run