mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
1.8 KiB
1.8 KiB
Getting Started
Private Server
To enhance privacy, you can host a private server within your own infrastructure, ensuring that your messages reside only on devices you control. The only required external network connection is for sending push notifications through the public server at sms.capcom.me. This architecture eliminates the need to set up Firebase Cloud Messaging (FCM) and rebuild the Android app, though it does require some technical expertise.
Prerequisites
- A MySQL or MariaDB database server with an empty database and a user granted full access to that database.
- A VPS (Virtual Private Server) running Linux with Docker installed.
- A reverse proxy with an SSL certificate and HTTPS enabled.
Run the Server
- Create a
config.ymlfile based on the config.example.yml. The critical sections to configure aredatabase,http, andgateway. Environment variables can be used to override values in the config file.- In the
gateway.modesection, set the value toprivate. - In the
gateway.private_tokensection, specify the access token for device registration in private mode. This token must also be set on devices operating in private mode.
- In the
- Launch the server in Docker with the following command:
docker run -p 3000:3000 -v $(pwd)/config.yml:/app/config.yml capcom6/sms-gateway:latest - Set up your reverse proxy, configure SSL, and adjust your firewall to allow access to the server from the Internet.
For additional details, refer to the server's README.md.
Configure Android App
To be continued...