ddvk / rmfakecloud

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

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

Closed ModProg closed 1 week ago

ModProg commented 5 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.