Open himanshunamdeo opened 3 years ago
ControlFloor / ios_remote_provider support running in either HTTP or HTTPS modes.
Both must be configured the same for it to work correctly.
For controlfloor; see https://github.com/nanoscopic/controlfloor/blob/main/config.json https should be set to true or false depending on which you want.
To set the specific certificate and key used, you can add the 'crt' and 'key' options to config.json to override the defaults that are in https://github.com/nanoscopic/controlfloor/blob/main/default.json
For ios_remote_provider, see https://github.com/nanoscopic/ios_remote_provider/blob/main/config.json#L5 https must be set to match the setting on ControlFloor. The selfSigned option allows a self signed certificate to be used on ControlFloor ( not good security, but good for testing )
Based on the error you have given, it seems that you have 'https: true' in ControlFloor config.json, so you need to visit https://localhost:8080 ( or set https to false )
ControlFloor isn't "stuck" after showing "Registering device routes"; it is simply up and running and has nothing else to say for the logs until you interact with it more.
I was following the basic Install instructions and this behaviour was not mentioned there so thought it was stuck. I think the instruction needs to be updated.
Sure can do ( update the instructions ). The instructions need to be updated overall as they are already somewhat out of date with the new changes.
ios_remote_provider
@nanoscopic Do you have sample file for config.json (not default.json) for controlfloor and ios_remote_provider?
Hi @nanoscopic,
In the latest ControlFloor, while running
main
on terminal the execution is stuck after printing "Registering device routes".Opening
http://localhost:8080
gives "Client sent an HTTP request to an HTTPS server." on browser.