Categorygithub.com/appmasker/caddy_rest_storage
repositorypackage
0.0.0-20240217231940-7fb0d5c3d4a1
Repository: https://github.com/appmasker/caddy_rest_storage.git
Documentation: pkg.go.dev

# README

Caddy REST Storage

This is a prototype to use a REST server as a storage back-end for Caddy.

Config

This storage module accepts two required strings: endpoint and api_key.

Endpoint

In addition your endpoint, the following paths must be handled by your API:

PathMethod
/lockPOST
/unlockPOST
/storePOST
/loadPOST
/deleteDELETE
/existsPOST
/listPOST
/statPOST

API Key

A hard-coded x-api-key header is sent to your endpoint. Use an auth token as the value (defined by api_key) to authenticate the request.

Example Config

  "storage": {
    "module": "rest",
    "endpoint": "https://myapi.com/handle-tls-storage-methods",
    "api_key": "VERY-SECURE-API-KEY"
  }