API gateway service of the Nur project, low-deps and Linux-only! :3c
You will need a working zig compiler to compile this project (at least v0.14.0). Then release builds (without debuginfo and nonverbose) are built like this:
zig build -Doptimize=ReleaseSafe
Debug builds are built like this:
zig build
If you're on nix, this project provides both a dev shell and a default package for x86_64:
nix develop
nix build
Some runtime parameters can be set through an .env
file:
PG_URL="<postgres-uri>"
SV_PORT="<desired-port>"
SV_HOSTNAME="<desired-hostname>"
WORKER_HOSTNAME="<desired-hostname>"
WORKER_PORT="<desired-port>"
This service exposes an HTTP server through the port specified at CONFIGURATION, then intercepts every request's headers to capture the target. Once it has found the function information related to that target it forwards the whole request to a worker service.
The target should be formatted as follows:
/<project-id>/some/path