From a7bbf6163fe23991834f96a2e0dd3a13c09a90b6 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Sat, 24 Sep 2016 22:18:25 +1200 Subject: [PATCH] Updated FAQ (markdown) --- FAQ.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 32914fe..9b60839 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1 +1,29 @@ -FAQ \ No newline at end of file +FAQ + +## How can I configure my reverse proxy to serve Portainer? + +Here is a working configuration for Nginx (tested on 1.11) to serve Portainer at `myhost.mydomain/portainer`: + +```nginx +upstream portainer { + server ADDRESS:PORT; +} + +server { + listen 80; + + location /portainer/ { + proxy_http_version 1.1; + proxy_set_header Connection ""; + proxy_pass http://portainer/; + } + location /portainer/ws/ { + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_http_version 1.1; + proxy_pass http://portainer/ws/; + } +} +``` + +Replace `ADDRESS:PORT` with the Portainer server/container details. \ No newline at end of file