diff --git a/README.md b/README.md index b8e18b0..d3d484d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,8 @@ add to your /etc/hosts : 127.0.0.1 dev.muntadas-protocols.figli.io ``` configure your apache/nginx vhosts to add a reverse proxy that will redirect the dev.materio.com to our container -``` + +```# apache ServerName dev.muntadas-protocols.figli.io ProxyPass / http://127.0.0.1:8882/ @@ -31,6 +32,23 @@ configure your apache/nginx vhosts to add a reverse proxy that will redirect the ``` +```# nginx +server { + listen 80; + server_name dev.muntadas-protocols.figli.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; + } +} +``` + ## Docker ### start daemon