Fetch SOS endpoint URL from env var with localhost fallback