Skip to main content
Skip table of contents

Running Pathfinder Server behind an nginx proxy

Pathfinder Server can be used behind an nginx proxyserver. In this case you can switch to using http instead of https for Pathfinder Server.

Since PFS uses websockets for the communication between frontend and backend, you need to enable the use of these in your nginx configuration by adding the following code to your site's configuration file for nginx (substitute "IP-OF-PATHFINDER-SERVER" with the IP or dns name of your PFS):

upstream websocket {
        server IP-OF-PATHFINDER-SERVER:8088;

server {
        listen 8080 default_server;
        location / {
                proxy_pass http://IP-OF-PATHFINDER-SERVER:8088;
                proxy_http_version 1.1;
                proxy_set_header   Upgrade $http_upgrade;
                proxy_set_header   Connection keep-alive;
                proxy_set_header   Connection "Upgrade";
                proxy_set_header   Host $host;
                proxy_cache_bypass $http_upgrade;
                proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header   X-Forwarded-Proto $scheme;

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.