lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

Document how to use reverse proxy and configure the server to properly handle Gitlab responses #289

Open jonas-martinez opened 1 year ago

jonas-martinez commented 1 year ago

What should be done

Document how to use reverse proxy and configure the server to properly handle Gitlab responses.

I can do it by running:

npx ngrok http 4000

which gives me the forwarding URLs that can be put in the HOST environment variable of the server.

HOST=http://4013-2a01-e0a-3e9-d660-502c-8aa0-2201-6e.ngrok.io mix phx.server

EDIT

The above mentioned commands do not seem to work as I did not receive the Gitlab response. Is there something that I'm missing ? @pichoemr

pichoemr commented 1 year ago

The HOST variable is the url we pass to the application so that it can call the server to receive responses from gitlab, you must set the LOCAL_TUNNEL_URL variable.