#1 2024-02-05 01:23:06

htits2008
Member
Registered: 2015-03-25
Posts: 34

linkto the server behind NGINX

Behind NGINX in the HTTPS protocol, there is our TRestHttpServer in the HTTP protocol. How can our TRestHttpClient connect to this server? What protocol does the client use?

Offline

#2 2024-02-05 07:47:51

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

Re: linkto the server behind NGINX

You can use HTTP/1.0 protocol over either TCP or Unix Sockets.
The later behind the fastest - but only on the loopback (locally).

See e.g.
https://synopse.info/forum/viewtopic.php?id=4753

Offline

#3 2024-02-21 01:14:13

htits2008
Member
Registered: 2015-03-25
Posts: 34

Re: linkto the server behind NGINX

thanks
I have a front-end application for Vue3, which uses methods for static files and interfaces for data. Two servers are publicly available online through a TRestHttpServer. Using a browser, this application works very well. In order to process a large amount of data, I developed a Lazarus client and implemented this feature through an interface. The problem is that if the server is placed behind NGINX using the HTTPS protocol, my client cannot connect to the  server. What should I do?

Offline

#4 2024-02-21 08:25:30

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

Re: linkto the server behind NGINX

Define nginx as reverse proxy to your mORMot server(s).

Offline

Board footer

Powered by FluxBB