TGRHavoc/live_map-interface

Reverse Proxy Examples

TGRHavoc opened this issue · 2 comments

At the moment there's reference to a mysterious "reverse proxy" in the documentation. There's not really any more information on how to set it up (a part from If you’re using NGINX, the following should be useful. which, may be overlooked).

I think a new file should be created (revserse_proxy.md) which should tell the users how to set up their webserver to act as a reverse proxy.

This should have examples in it for the following webservers:

  • NGINX
  • Apache
  • IIS (Internet Information Services) by Microsoft
  • LightHTTPD
  • Caddy

Maybe we should also add a link to the Github issues for if they want to request a webserver or, if to the repo itself for if they want to add it? I don't know what the best practice is for this so, ideas welcome.

There's only two things that need to be proxies for a secure interface.

socket:
This should be a reverse websocket connection that points to the FiveM IP and the configured socket port.

blips:
This should be a reverse proxy (normal HTTP) that points to the /blips URL (http://fivem_IP:socket_port/blips)

Marking as good first issue as you don't need to know anything about the project, just some basic research skills for the reverse proxy examples.

Just thought, the examples should also make clear the parts that needs replacing. For example http://{{fivem_IP}}:{{socket_port}}/blips.

We should then also make it clear that the user needs to replace "{{fivem_IP}}" with their public IP etc.

Implemented in 46b0fc7