Crates.io | droplet |
lib.rs | droplet |
version | 0.1.14 |
source | src |
created_at | 2024-03-04 22:02:32.039026 |
updated_at | 2024-03-04 22:02:32.039026 |
description | A simple utility to assist small organizations/groups in distributing a service across multiple machines |
homepage | https://github.com/SaphiraKai/droplet |
repository | https://github.com/SaphiraKai/droplet |
max_upload_size | |
id | 1162315 |
size | 49,737 |
A simple utility to assist small organizations/groups in distributing a service across multiple machines
Droplet is a very simple tool! It does not provide load-balancing or anything as such - it's designed for only one host to be active at a time.
droplet [CONFIG]
[CONFIG] is an optional path to your service's droplet.toml
.
If omitted, Droplet will search the current directory for it by default.
Create a droplet.toml
in your service's root directory:
dns_code = "YourCodeHere" # optional
[service]
exec = "./path/to/script"
args = [
"--flag",
"argument"
]
You can provide a single domain name for your service, regardless of the public IP address of the current host - completely free!
This is possible by using FreeDNS and its Dynamic DNS feature.
Register an account with FreeDNS: https://freedns.afraid.org
Register a subdomain for your service: https://freedns.afraid.org/subdomain/
Enable dynamic updates v2 for your subdomain: https://freedns.afraid.org/dynamic/v2/
Copy your code from your Dynamic Update URL (e.g. http://sync.afraid.org/u/ThisIsYourCode/)
Then paste it into your service's droplet.toml
:
dns_code = "YourCodeHere"
Droplet will now automatically update the IP address your subdomain points to whenever you start a new Droplet instance!