Matrify Server

Setting up a reverse-proxy

The Matrify Server software allows the use of reverse-proxies. Reverse-proxies can be used in local networks to e.g. setup HTTPS encryption, local domains, firewalls and authentication for services on the intranet.

This page provides examples how a reverse-proxy can be configured to forward requests to a Matrify Server instance.

HTTPS encryption and an intranet domain can also be setup with a Matrify Server directly. A reverse-proxy is not required in simple cases.

Nginx

Simple configuration to forward requests to the intranet domain http://matrify.local to the Matrify Server instance running on port 8182 using Nginx.

server {
    listen       127.0.0.1:80;
    server_name  matrify.local;

    location / {
        proxy_pass http://127.0.0.1:8182;
    }
}
        			

Find further information on the website of Nginx.

HAProxy

Simple configuration to forward requests to the intranet domain http://matrify.local to the Matrify Server instance running on port 8182 using HAProxy.

frontend matrify
  bind *:80 
    acl host_my_domain hdr(host) -i matrify.local
    use_backend matrify-backend if host_my_domain

backend matrify-backend
  balance  roundrobin
  http-request  set-header Host 127.0.0.1:8182
  reqirep  ^([^\ \t:]*:)\ http://matrify.local/(.*) \1\ http://127.0.0.1:8182/\2
  rspirep  ^([^\ \t:]*:)\ http://127.0.0.1:8182/(.*) \1\ http://matrify.local/\2
  server matrify01 127.0.0.1:8182 check        			
  					

Find further information on the website of HAProxy.