Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this run in limited environment likes Electron, in Android and iOS through ReactNative? #34

Closed
linonetwo opened this issue Dec 26, 2019 · 1 comment
Labels
question Further information is requested

Comments

@linonetwo
Copy link

linonetwo commented Dec 26, 2019

I'd like to make a portable BaaS server with this, so a user can open an Android app or cross-platform electron app to start an https server.

I'm wondering if it is possible to do so. Maybe it is up to appdata-path, it doesn't work in the mobile environment.

@daquinoaldo
Copy link
Owner

Hi @linonetwo
I'm not sure I understand your aim: you want to allow users to visit a website on https://localhost from a mobile browser (e.g. Chrome) or you want to encapsulate this service in an app that also shows the website by itself?

As you said, probably appdata-path could be a problem, but a workaround should not be difficult.
The main issue you have to take into account is that https-localhost requires sudo permissions to add and trust a self-generated certification authority.
You can bypass the sudo requirement if you don't need a trusted certificate. In that case, you may be interested in rewrite it by yourself since it will be like 3 lines of code plus a non-signed self-generated certificate.

@daquinoaldo daquinoaldo added the question Further information is requested label Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants