- Oct 23, 2024
-
-
Ophestra authored
Examples in documentation has captcha after APi handler however that does not seem to work, so it is moved in front here. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Turns out CORS defaults to strict if no headers are sent at all, so this permissive default makes more sense. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
- Oct 19, 2024
-
-
-
Ophestra authored
This allows easy disablement of CORS for testing. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Levatax authored
-
- Oct 17, 2024
-
-
-
Ophestra authored
Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Levatax authored
-
Levatax authored
-
- Oct 16, 2024
-
-
Ophestra authored
This socket is typically placed in a directory with restrictive permissions, and that is a much easier way to control access than to have the application set it to some custom value. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
-
Ophestra authored
Registration time is stored in the binary format emitted by time.Time and if that somehow fails, falls back to a base 10 encoded string of the unix timestamp. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Support listening on unix socket. Path is set by the LISTEN environment variable. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
-
Levatax authored
-
Ophestra authored
This adds /api/count which returns a value initialised on startup and incremented each successful registration. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
All API endpoints are moved under /api. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
This also returns a success state making it easier for clients to understand the API response. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Prevent application from dying on some container tools. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
- Oct 15, 2024
-
- Oct 14, 2024
-
-
Ophestra authored
This reduces the unnecessary JSON serialisation work each time this endpoint is called. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
hCaptcha middleware must be placed *after* the API handler. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
- Oct 11, 2024
-
-
Ophestra authored
GitLab seems to have a long unfixed bug with its CI system (https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27614 ). This commit attempts the workaround suggested in the issue comments. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Levatax authored
-
Levatax authored
-
Ophestra authored
Logging now contains more information, and invalid requests will only log when VERBOSE=1. Value of email keys now only consists of a single byte, and existence is checked using the Has method. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
The `app.Listen` method only returns when `app.Shutdown` is called. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Introduces configuration defaults, and lookup is grouped into a single init function. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-
Ophestra authored
Database default will be "db" and will commonly be created at project root during testing. Signed-off-by:
Ophestra Umiker <cat@ophivana.moe>
-