Hi,
the function locateService in line
|
host := config.DefaultHost |
does not make use of the config parameter
STORAGE_URL, but is instead hardcoded to
local.appspot.com.
This means that every client of the rmfakecloud has to resolve the host local.appspot.com.
Whilst this poses no major problem for the remarkable device itself, it is a nuisance for 3rd-party cloud clients like rmcl, rmfuse, etc: The device running these clients must modify /etc/hosts and further accept the ca-certificate used to sign local.appspot.com.
thejonny has drafted a solution already, see #161.
It introduces STORAGE_HOST instead of STORAGE_URL (without a preceding https://) and allows us to run rmfakecloud without manually resolving local.appspot.com on the remarkable device (or the computer running rmfuse).
Whilst we are not sure of the precise use of STORAGE_URL in rmfakecloud it might be that is superseeded by STORAGE_HOST. But we are not sure yet.
Hi,
the function
locateServicein linermfakecloud/internal/app/handlers.go
Line 522 in 3ff893c
STORAGE_URL, but is instead hardcoded tolocal.appspot.com.This means that every client of the
rmfakecloudhas to resolve the hostlocal.appspot.com.Whilst this poses no major problem for the remarkable device itself, it is a nuisance for 3rd-party cloud clients like
rmcl,rmfuse, etc: The device running these clients must modify/etc/hostsand further accept the ca-certificate used to signlocal.appspot.com.thejonny has drafted a solution already, see #161.
It introduces
STORAGE_HOSTinstead ofSTORAGE_URL(without a precedinghttps://) and allows us to runrmfakecloudwithout manually resolvinglocal.appspot.comon the remarkable device (or the computer runningrmfuse).Whilst we are not sure of the precise use of
STORAGE_URLinrmfakecloudit might be that is superseeded bySTORAGE_HOST. But we are not sure yet.