deep-entertainment / issues

Issue tracker for deep Entertainment projects
1 stars 0 forks source link

TLS/HTTPS support for godottpd #47

Open Anutrix opened 4 months ago

Anutrix commented 4 months ago

Please make sure you talk to the community before creating an issue.

Project:

Is your feature request related to a problem? Please describe. Godottpd doesn't seem to have TLS support. TCPServer used by the project is unencrypted afaik.

Describe the solution you'd like Not sure but from https://www.reddit.com/r/godot/comments/17ltxjp/webrtc_peertopeer_multiplayer_how_do_i_have_a/ I think StreamPeerTLS can be used.

Describe alternatives you've considered Writing a https server addon/scene/node myself from scratch for Godot 4.

Additional context I'm trying to securely send files between a Godot application running in 2 different devices.

Let me know if it is already secure.

Anutrix commented 4 months ago

For now, I have written one myself in GDScript based on https://github.com/godotengine/godot/blob/master/platform/web/export/editor_http_server.cpp . Stability state is pre-alpha state but it should work.

The Server script: https://github.com/Anutrix/lan-jet/blob/main/AnotherHTTPServer/AnotherHTTPServer.gd An example script: https://github.com/Anutrix/lan-jet/blob/main/ServerManager.gd