From 69dee60e7c0e8ee88ee5801fbca6a10aa6edc0c2 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 25 Feb 2020 14:07:03 +0100 Subject: [PATCH] updated readme --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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