# deployment-common

Reusable deployment snippets (nginx, systemd, Cloudflare, fail2ban).
Use as reference or copy into your project.

## Contents

- **nginx-api-location.conf** – Generic `location /api/` proxy snippet (upstream host/port to be adjusted).
- **nginx-rpc-api-key-gate.conf** – Example `auth_request` pattern for API-key-protected RPC lanes using the explorer access validator.
- **systemd-api-service.example** – Example systemd unit for a REST API (env and paths to be adjusted).
- **../scripts/render-rpc-access-gate-nginx.sh** – Render a concrete nginx gate config for `core-rpc`, `alltra-rpc`, or `thirdweb-rpc`.
- **cloudflare / fail2ban** – See parent `../cloudflare/` and `../fail2ban/` for full configs.

When this is a separate repo, add as submodule at `deployment/common`.
