Skip to content

Redirect to Reverse Proxy

To use the main entry point of an Edge Device (reverse proxy on port 443) as the redirect target, you can use the IE App Publisher to define the reverse proxy behavior. Multiple reverse proxy configurations can be added for each service. You can choose 1 from the given reverse proxy configurations which can be used for redirecting the app. Once the app is installed on an Edge Device, all added reverse proxy configurations are used to create nginx configuration files.

Following, an example of a docker-compose file with redirecting the app using the reverse proxy:

reverse proxy dc

You can set reverse proxy configurations for your app using the IE App Publisher UI.

Using the IE App Publisher UI

For each service, you can add these reverse proxy configurations. After filling the reverse proxy settings, click the plus button to add the reverse proxy configuration.

reverse proxy ui
servicename : This sets up a location block in nginx conf that matches requests. In the above example nginx matches any URL starting with /nginxservice
subpath: This path is added after servicename. In the above example nginx matches any URL starting with /nginxservice/pp
Custom Configuration : Configures specific behavior for the proxying process.
RewriteTarget: Changes the request target URI before proxying. In the above example the original request URI is rewritten to /nginx.
Container Port & Protocol: These values are used in proxy_pass configuration. In the above example nginx matches any URL starting with /nginxservice will be forwarded to https://:80
Secure Redirection : Ensures each request is authenticated by Device auth. In above example for every request matching the location /nginxservice/pp, Nginx sends a sub-request to device /auth to check if the request is allowed.
Bypass URL Decoding : All requests will be forwarded to the container port without any rewrites and the container will get the request as is with service name (path) and subpath included.

NOTICE

Adding multiple proxy directives
Use Proxy Directives and Field - Key and Value - Value.
For Example:
proxy_set_header in Proxy Directives and Field and $host in Value
X-Real-IP in Proxy Directives and Field and $remote_addr in Value

Select the reverse proxy configuration which was created in the previous step.

add version

After installing the app on the Edge Device, a nginx file will be created as shown below:

nginxservice

The nginxservice reverse proxy configuration will redirect your app to the given URL:

    https://<edge_device_url>:9443/nginxservice/mypath

NOTICE

If you are using a reverse proxy to redirect UI-based apps, ensure that your app's root URL must be configured accordingly.