ddvk / rmfakecloud

host your own cloud for the remarkable
GNU Affero General Public License v3.0
751 stars 61 forks source link

Error when `STORAGE_URL` doesn't contain protocol #310

Open ModProg opened 3 months ago

ModProg commented 3 months ago

When the storage URL is set without the protocol, i.e., just my.domain.com instead of https://my.domain.com, calling my.domain.com/discovery/v1/webapp returns {"Host": ""}.

As this makes the cloud not work at all, I'd suggest failing server startup and printing an error on this misconfiguration.