aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex <alexta69@gmail.com>2019-12-06 14:16:19 +0200
committerAlex <alexta69@gmail.com>2019-12-06 14:37:08 +0200
commit91cee0339a8b41014fc69a994e7eb719ad029d3a (patch)
tree256ba10d705eb2cb24c0914e5c84b13d797e334d /README.md
parentupdate README with full screenshot URL (diff)
downloadmetube-91cee0339a8b41014fc69a994e7eb719ad029d3a.tar.gz
metube-91cee0339a8b41014fc69a994e7eb719ad029d3a.tar.bz2
metube-91cee0339a8b41014fc69a994e7eb719ad029d3a.zip
fix broken PREFIX_URL feature
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3f4e07d..e7b1555 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,20 @@ Certain values can be set via environment variables, using the `-e` parameter on
* __DOWNLOAD_DIR__: path to where the downloads will be saved. Defaults to "/downloads" in the docker image, and "." otherwise.
* __URL_PREFIX__: base path for the web server (for use when hosting behind a reverse proxy). Defaults to "/".
+## Running behind a reverse proxy
+
+Use the following nginx configuration to run MeTube behind a reverse proxy. The extra `proxy_set_headers` directives are there to make WebSockets work. Don't forget to set the URL_PREFIX environment variable to the correct value as well.
+
+```
+location /metube/ {
+ proxy_pass http://metube:8081;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_set_header Host $host;
+}
+```
+
## Build and run locally
Make sure you have node.js installed.
bgstack15