1
Fork 0
generated from lucas/rust-template
Code Issues 1 Pull requests 9 Activity
Var Dump:
dumpVar: only available in dev mode
Mailing List
Commit graph

6 commits

Author SHA1 Message Date
4f61690b45
Update Rust crate mlua to 0.10.0 2024-10-25 20:32:40 +00:00
c105ac80cd
Add Dockerfile 2024-09-20 10:31:19 +02:00
f5c64b788f
Use Rustls for TLS
Slim Docker images like Alpine or Distroless don't ship OpenSSL by
default, and rather than installing that, Rustls can be linked
statically.
2024-09-20 10:28:08 +02:00
d2cb39f9a2
Rework API tasks
GitHub expects a 'Last-Modified' header, and honoring an
'X-Poll-Interval' header for their notifications endpoint.
Other services might also have certain limitations that require
customizing every API query individually.

Since that's not possible if API tasks are configured once and run off
of an interval, this reworks them so that the config needs to trigger
every query individually. A `delay` parameter allows re-creating the
same intervals that were possible before.

This also moves the configuration for Ntfy to the Lua file.
2024-09-18 11:31:10 +02:00
a02bf39f27
Implement initial boilerplate
The general architecture is a collection of four
threads.
Three threads that run their dedicated Tokio runtime and handle
the axum server, send outgoing notifications and run scheduled API
requests respectively. The fourth thread runs the Lua VM.

Channels exist between the threads to send messages and allow the Lua
script to orchestrate and configure everything.
2024-09-17 13:49:27 +02:00
4faa02d2af
Initial commit 2024-09-05 14:36:46 +00:00