How do I run Appsmith behind an AWS ELB or proxy server?

When running Appsmith behind an AWS ELB, the redirect URLs for Google & Github OAuth2 are incorrectly generated. I have a custom port as well. What do I do?

In order to configure Appsmith to run behind an ELB, in the file data/nginx/ please modify the line:

proxy_set_header X-Forwarded-Proto $scheme;


proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;

This will ensure that the redirect URLs are correct during OAuth2 logins. This works even if the ELB is configured to run on a custom port.

The way we handled this. Is to use cloudflare argo tunnels, so all traffic is proxyed through CF. Is was surprisingly simple to setup. And made it easy to control access to our appsmith instance to just our internal company team.

Just pushed a fix to enable support for this without needing any NGINX configuration change. Should be out for everybody most likely by end of the week.