Site URL Keeps Changing to EC2 Host's IP Address

We are experiencing an issue where the Site URL keeps changing to the IP address of the host EC2 instance. Are there any particular scenarios where this would be the intended behavior? We are currently unable to reproduce the issue and are “alerted” when users Pulses and Public Links stop functioning.


Are you using EBS or ELB? It seems like there might be a race-condition, where a health-check somehow causes the wrong URL to be defined.
There’s an PR open for that:

Alternatively try setting the URL via environment variable, which should prevent it from being changed at all:

Thanks for the very helpful response! As we don’t want anyone to change that URL, we’ll likely move forward with setting the environment variable.