capcom6 / android-sms-gateway

The SMS Gateway for Androidâ„¢ app enables sending and receiving SMS messages through an API that can be accessed directly on the device or via a cloud server when direct device access is not possible.
https://sms-gate.app
Apache License 2.0
201 stars 53 forks source link

Endpoint by SSL, date and time of SMS delivery #59

Closed djm03 closed 4 months ago

djm03 commented 5 months ago

Thank you for the great project.

Two questions about this:

  1. When using the local server, is there a way to secure the access to the endpoint by SSL?

  2. Can the date and time of SMS delivery be transmitted in the response, in addition to [state] => Delivered?

capcom6 commented 5 months ago

Hello!

  1. Currently, the local server doesn't natively support SSL/TLS. This mode is intended for use within private and trusted networks, and I advise against exposing the local server to public access without any security measures. However, you can set up a reverse proxy such as Nginx to handle SSL/TLS termination.

  2. Regarding the transmission of the date and time of SMS delivery, this feature is not available at the moment. I will look into the possibility of implementing this functionality.

djm03 commented 5 months ago

Hello!

Thanks for the information. Where have the reverse proxy to be running, on the Android device? Do you have instructions for setting this up?

capcom6 commented 5 months ago

It's not common to run a reverse proxy directly on an Android device. Typically, a reverse proxy would run on a separate piece of hardware within your local network. This could be on a router that supports custom firmware and has the capability to run a reverse proxy, or it could be on a dedicated server or another computer in your network.

The general communication flow would look something like this:

Internet -> [Router] -> [Reverse Proxy] -> [Android Device]

In this setup, the parts within the parentheses represent your local network. The reverse proxy serves as a gateway that manages incoming Internet requests and directs them to your Android device.

If you're looking for a more straightforward solution, you might want to explore the Public Cloud Server mode. It's designed to be easier to set up and might be better suited for your needs if you're looking to avoid the complexity of configuring a reverse proxy. You can find more information and a guide to get started here: https://sms.capcom.me/getting-started/public-cloud-server/.

See also https://github.com/capcom6/android-sms-gateway/issues/20