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

19 commits

Author SHA1 Message Date
a43d12c37f
Update rust Docker tag to v1.86.0 2025-04-03 17:49:55 +00:00
550dbda442
Merge pull request 'Update rust Docker tag to v1.85.0' (#7) from renovate/rust-1.x into master
Reviewed-on: #7
2025-02-21 08:47:39 +00:00
03543315b3
Update rust Docker tag to v1.85.0 2025-02-21 00:50:49 +00:00
aad4707ddf
Merge pull request 'Update rust Docker tag to v1.84.1' (#6) from renovate/rust-1.x into master
Reviewed-on: #6
2025-02-18 13:08:03 +00:00
ea01247d48
Update rust Docker tag to v1.84.1 2025-01-31 00:50:19 +00:00
15f863fce5
Merge pull request 'Update rust Docker tag to v1.83.0' (#4) from renovate/rust-1.x into master
Reviewed-on: #4
2024-12-05 08:39:02 +00:00
144d3e820c
Update rust Docker tag to v1.83.0 2024-12-02 22:03:45 +00:00
6ceda6c568
Merge pull request 'Update Rust crate mlua to 0.10.0' (#3) from renovate/mlua-0.x into master
Reviewed-on: #3
2024-10-28 09:22:37 +00:00
4f61690b45
Update Rust crate mlua to 0.10.0 2024-10-25 20:32:40 +00:00
0848ae3e13
Merge pull request 'Update rust Docker tag to v1.82.0' (#2) from renovate/rust-1.x into master
Reviewed-on: #2
2024-10-18 08:29:06 +00:00
9d1b3bedc9
Update rust Docker tag to v1.82.0 2024-10-17 23:47:45 +00:00
18efbb0957
Catch failing worker threads
Previously if one of the threads other than the server failed,
it would log the error but continue to run in a broken state.
So instead this makes sure than if any thread finishes the whole
application stops.
Since all worker threads should always wait indefinitely for more work,
this should only happen if one of them bails on an error.
2024-09-24 11:48:15 +02: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
e9796333bb
Reduce logging noise 2024-09-20 10:27:50 +02:00
23d27389d3
Expose logging functions to Lua 2024-09-19 13:52:36 +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