Running the LeZa Proxy
The proxy is your application security gateway providing the all-important secured access control.
See the steps below to get your LeZa gateway up and running.
The LeZa proxy is the gateway to your application and should be the only public access point (unless you know what you are doing). This means that the proxy should be inside the private network containing your application. Although there is a way to configure your application and the LeZa gateway on different networks this requires a bit more work. We highly recommend for the purposes of efficiency and security you keep all instances inside the same private network.
You will also need to have docker installed.
Next, pull the LeZa Proxy docker image with this command
docker pull simplusinnov/leza-proxy
Then, run the proxy with the below command
docker run -e OAUTH2_CLIENT_ID=[YOUR_LEZA_CLIENT_ID] -e OAUTH2_CLIENT_SECRET=[YOUR_LEZA_CLIENT_SECRET] --net=host -it -d simplusinnov/leza-proxy
If you are using a Mac then use the following command:
docker run -p 8001:80/tcp -e OAUTH2_CLIENT_ID=[YOUR_LEZA_CLIENT_ID] -e OAUTH2_CLIENT_SECRET=[YOUR_LEZA_CLIENT_SECRET] -it -d simplusinnov/leza-proxy
Your proxy should now be running and if you configured your application on LeZa you will be redirected to a login page when trying to access your content!