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

add option to start server as HTTPS with SSL Certificate to Runner and to HotReloader #55

Open
insinfo opened this issue Feb 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@insinfo
Copy link

insinfo commented Feb 24, 2022

add option to start server as HTTPS with SSL Certificate to Runner and to HotReloader

add option here angel3_hot.dart line 206

 var server = _io = await HttpServer.bind(address ?? '127.0.0.1', port ?? 0);
    server.listen(handleRequest);
 var server = _io = HttpServer.bindSecure(address ?? '127.0.0.1',
                      port ?? 0,
                      backlog: 5,
                      certificateName: 'localhost_cert');

https://api.dart.dev/stable/2.16.1/dart-io/HttpServer-class.html#id_bindSecure
https://github.com/dart-lang/sdk/blob/master/tests/standalone/io/https_server_test.dart

@dukefirehawk
Copy link
Collaborator

Are you using angel3_hot in production? Normally SSL is only needed in production and angel3_hot is for development. Would be great if you could provide your use case for using SSL with angel3_hot instead of angel3_production?

@dukefirehawk dukefirehawk added the question Further information is requested label Feb 26, 2022
@dukefirehawk dukefirehawk added enhancement New feature or request and removed question Further information is requested labels Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants