Use Nginx Proxy Manager with Duniter and Docker

French title for search results: “Utiliser Nginx Proxy Manager avec Duniter et Docker”

Hi,

if anyone is interested in finding out how to configure your Nginx Proxy manager and docker in front of duniter, here’s the config:

MY config.json file
my-config.json (1.7 KB)


NGINX Proxy Manager Configuration



Blockquote proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_http_version 1.1;


You can test your config by going to these addresses on your browser:

BMAS config
https:// yourdomain /network/peering
or
http:// localIP :10901/network/peering
e.g.:
https:// g1.confederacao-lusitana .org /network/peering


Server Version

https:// yourdomain
or
http:// localIP :10901
e.g.:
https:// g1.confederacao-lusitana .org/


WS2P config
wss:// yourdomain /api
e.g.:
wss:// g1.confederacao-lusitana .org /api (wss and not ws, behind ssl/nginx proxy manager)
or
ws:// localIP:20901 /api (ws and not wss)

You can test WS2P config with a browser extension for websockets, such as firefox’s simple websocket client


Docker Image

IMAGE docker.io/duniter/duniter


Hope this helps someone.
I spent a few hours scratching my head around this.

3 Likes