Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Using Flood behind a reverse proxy

Alexandre ZANNI edited this page May 20, 2018 · 12 revisions

In order to use Flood behind a reverse proxy, you must be sure to forward all requests to Flood's node server.

In the following configuration examples, let's assume Flood is running at 127.0.0.1:3000, and that you would like to serve the Flood app at <some address>/flood.

Your nginx config should contain these rules:

location /flood/ {
  rewrite ^/flood/(.*) /$1 break;
  proxy_pass http://127.0.0.1:3000/;
}

And your Flood config should contain the following values:

baseURI: '/flood'

Be sure to compile static assets after changing the baseURI configuration option.

Clone this wiki locally