Publish the local server's ip to other subscribed services.
-
Run Ip Publisher in (ex.) ServerX that you want its dynamic ip to be published
-
Register from other services that depend on the dynamic ip of ServerX
-
Once ServerX's ip is changed, Ip Publisher publishes the new ip to subscribed services automatically.
Login to server and get auth token
GET http://<server>/login
body:
{
"username": "<username from .env file or environment variables>",
"password": "<password from .env file or environment variables>"
}
Register for ip update with auth token
POST http://<server>/registrar
header: Content-Type: application/json
header: Authorization: Bearar <auth_token>
body:
{
"name": "My Application",
"callbackUrl": "https://www.myotherapp.com/"
}
Check current domain
GET http://<server>/domain
header: Authorization: Bearer <auth_token>
- Copy _.env file to .env or add environment variables for those keys
- Deploy a mongo server in the cloud, I am using https://mlab.com/, its free to use.
- Get the mongo_url and add to .env or add as environment variable
- Deploy the docker container with environment variables
- Fork the project
- Make some commits to improve the project.
- Push this branch to your GitHub project.
- Open a Pull Request on GitHub.
- Discuss, and optionally continue committing.