I have a script running in the background using web2py environment (model). However, it seems that the script is run locally, so that means that web2py sees the URL also local (http://127.0.0.1). If I create a full absolute link through a website request the URL points to my CNAME domain, but the scheduled script generates the same link with local address (i.e. 127.0.0.1).
I'm new in this area, so just wanted to confirm that this is expected (as I assume), when script is run internally.