pageboard / proxy

Nginx server configuration
MIT License
0 stars 0 forks source link

Pageboard nginx proxy

Some configuration must be manually done (especially for the hosts).

See pageboard/systemd for units files.

Prerequisites

Setup pageboard service

Override pageboard name

APPNAME=pageboard1 pageboard

Setup minimal config

In ~/.config/pageboard1/config:

listen = 17000
[connection]
user = eda

Setup pageboard service file

See services/README.md

Setup iptables

The idea is to redirect traffic bound to an IP address and port 80 and 443, to 17080 and 17443 (or whatever ports you choose), and run nginx/memcached as current user on those ports.

This allow each nginx instance to "catch" all domains redirecting to that IP, to have additional modules and config kept separate from other nginx configurations.

It also has the additional benefit of running with unprivileged user.

See etc/ for an example configuration with two pageboard services.

Setup nginx service

See services/README.md

Local testing