#1 2020-10-08 12:16:25

ttomas
Member
Registered: 2013-03-08
Posts: 117

SynProtoRelay behind Nginx proxy

Can I put Public Relay (TPublicRelay) behind Nginx proxy server and how to configure nginx?
In TPublicRelay.Create I see aClientsPort and aServerPort. aServerPort is port where TPrivateRelay connect, correct?
Can this be configured if only 443 port is enabled in nginx or I need additional port on nginx?
My idea is to enable on my public web server microservice to connect to private microservice and don't open additional port on web server. Only to open Nginx port to public on web server. In case of Public Relay and client on same web server, I don't need aClientsPort in nginx configuration. What uri to configure in nginx/proxy_pass for PrivateRelay to connect?

@ab waiting for 38 - WebSockets Relay Sample :-)

Last edited by ttomas (2020-10-08 14:03:31)

Offline

#2 2020-10-08 15:36:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: SynProtoRelay behind Nginx proxy

Yes, you can put TPublicRelay behind a nginx server, to handle properly HTPS on port 443 and define it as a reverse proxy.

It should work also for WebSockets.

Offline

#3 2020-10-08 16:09:12

ttomas
Member
Registered: 2013-03-08
Posts: 117

Re: SynProtoRelay behind Nginx proxy

Any sample of nginx conf for private relay as client, what uri/location to proxy. I already serv / and some other uri's.

Offline

#4 2020-10-08 17:14:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,182
Website

Re: SynProtoRelay behind Nginx proxy

There are some in the forum IIRC.

Offline

#5 2020-10-08 20:26:45

ttomas
Member
Registered: 2013-03-08
Posts: 117

Re: SynProtoRelay behind Nginx proxy

Thank's a lot @ab for your response and this wonderful framework. My confusion is I don' see any Uri from PrivateRaley or PublicRaley to proxy, only address and port. Nginx now proxy / to node vue application, /api to mORMot method based service, /intf to mORMot interface service and I need ex. /relay to PublicRelay server. I already see https://synopse.info/forum/viewtopic.ph … 669#p27669

Where can I post Case Study made by mORMot project's?

Last edited by ttomas (2020-10-08 20:29:16)

Offline

Board footer

Powered by FluxBB