#client #public-ip #pem #run #toml #config-file #db

app my_public_ip_client

My public ip client

6 releases (breaking)

0.6.1 Feb 9, 2021
0.6.0 Feb 8, 2021
0.5.0 Feb 7, 2021
0.4.0 Feb 7, 2021
0.1.0 Dec 18, 2020

#14 in #pem

MIT/Apache

22KB
133 lines

Run server

cargo run -p my_public_ip_server -- \
  --config-file server/config.toml \
  --db-dir db \
  --log-file server/log4rs.yaml \
  --pid-file server/my_public_ip_server.pid \
  --cert-file server/cert.pem \
  --key-file server/key.pem \
  --port 8998

Run client

RUST_LOG=info cargo run -p my_public_ip_client -- \
  --url=https://127.0.0.1:8998 \
  --api-key=abcdef \
  list


RUST_LOG=info cargo run -p my_public_ip_client -- \
  --url=https://127.0.0.1:8998 \
  --api-key=012345 \
  update


RUST_LOG=info cargo run -p my_public_ip_client -- \
  --url=https://127.0.0.1:8998 \
  --api-key=012345 \
  update-forever \
  --interval=3

Dependencies

~11–25MB
~366K SLoC