I’m running a yourls instance as an AWS ECS Service
and yourls requires to explictly set the environment variable -e YOURLS_SITE="your-domain.com"
and if you don’t specify the YOURLS_SITE ,it redirects to
http://your-own-domain-here.com
Locally, I’m able to get it running on http://localhost:8080. If i keep it localhost:8080, the css breaks.
Is there a way you can get the YOURLS_SITE HOSTIP or hostname dynamically?
In AWS, I’m able to access the website over the Public IP of the ENI. But this Public IP is known only after I deploy to ECS. And it changes on every new service update. So how do I get yourls to dynamically set the YOURLS_SITE value?