fiddy/docker/nginx/npm/location-write-advanced.conf.example
Nico f8e426542d
Some checks failed
Build & Deploy Fiddy (Dokploy) / build (push) Has been cancelled
Build & Deploy Fiddy (Dokploy) / deploy (push) Has been cancelled
feat: implement schedules pivot, scheduler service, and dokploy deploy flow
2026-02-15 17:10:58 -08:00

19 lines
569 B
Plaintext

# Paste into NPM Custom Location advanced config for write-heavy API paths,
# for example:
# - /api/entries
# - /api/buckets
# - /api/groups
# - /api/tags
# - /api/recurring-entries
#
# Requires `limit_req_zone fiddy_write` in http context.
# Keep request-id forwarding/header here too because this location is
# more specific than `/` and can bypass root location directives.
add_header X-Request-Id $request_id always;
proxy_set_header X-Request-Id $request_id;
if ($request_method ~* "(POST|PATCH|PUT|DELETE)") {
limit_req zone=fiddy_write burst=40 nodelay;
}