Skip to content

Commit

Permalink
fix(documentation): write README and lint Caddyfiles + fix Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Jul 16, 2024
1 parent f3f999d commit ef3445b
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 19 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ env:
jobs:
static-validation:
services:
nats:
image: nats
command: -js
ports:
- 4222:4222
- 6222:6222
- 8222:8222
# nats:
# image: nats
# volumes:
# - ${{ github.workspace }}/.github/workflows/nats.conf:/etc/nats/nats-server.conf
# ports:
# - 4222:4222
# - 6222:6222
# - 8222:8222
redis:
image: redis
ports:
Expand All @@ -43,7 +44,7 @@ jobs:
- core
- etcd
- go-redis
- nats
# - nats
- nuts
- otter
- redis
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@
This repository contains all supported storages by the HTTP cache [Souin](https://github.com/darkweak/souin).
Each storages are available as caddy module and can be used with the HTTP cache module.
Using caddy, you can build your instance using the following template `xcaddy build --with github.com/darkweak/storages/{your_storage}/caddy`.

## Supported storages
* [Badger](https://github.com/dgraph-io/badger)
* [Etcd](https://github.com/etcd-io/etcd)
* [Go-redis](https://github.com/redis/go-redis)
* [Nats](https://github.com/nats-io/nats-server)
* [Nuts](https://github.com/nutsdb/nutsdb)
* [Olric](https://github.com/buraksezer/olric)
* [Otter](https://github.com/maypok86/otter)
* [Redis](https://github.com/redis/rueidis)
2 changes: 1 addition & 1 deletion badger/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
2 changes: 1 addition & 1 deletion etcd/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
2 changes: 1 addition & 1 deletion go-redis/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
4 changes: 2 additions & 2 deletions go-redis/caddy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
build:
go mod tidy
go mod download
XCADDY_RACE_DETECTOR=1 XCADDY_DEBUG=1 xcaddy build --with github.com/darkweak/storages/core=../../core/ --with github.com/darkweak/storages/redis=../ --with github.com/darkweak/storages/redis/caddy=./
./caddy run
XCADDY_RACE_DETECTOR=1 XCADDY_DEBUG=1 xcaddy build --with github.com/darkweak/storages/core=../../core/ --with github.com/darkweak/storages/go-redis=../ --with github.com/darkweak/storages/go-redis/caddy=./
./caddy run
2 changes: 1 addition & 1 deletion nats/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
2 changes: 1 addition & 1 deletion nats/caddy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
build:
go mod tidy
go mod download
XCADDY_RACE_DETECTOR=1 XCADDY_DEBUG=1 xcaddy build --with github.com/darkweak/storages/core=../../core/ --with github.com/darkweak/storages/otter=../ --with github.com/darkweak/storages/otter/caddy=./
XCADDY_RACE_DETECTOR=1 XCADDY_DEBUG=1 xcaddy build --with github.com/darkweak/storages/core=../../core/ --with github.com/darkweak/storages/nats=../ --with github.com/darkweak/storages/nats/caddy=./
./caddy run
2 changes: 1 addition & 1 deletion nuts/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
2 changes: 1 addition & 1 deletion olric/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ http://localhost {
olric
}
}
}
}
2 changes: 1 addition & 1 deletion otter/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}
2 changes: 1 addition & 1 deletion redis/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ http://localhost {
}
}
}
}
}

0 comments on commit ef3445b

Please sign in to comment.