No description
| .github/workflows | ||
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| random.go | ||
| README.md | ||
redirs
Usage
example.com {
redir_random /redir/* {
to https://example.com{uri} https://example.hu{uri}
to https://example.eu{uri}
code temporary
}
...
}
Build
xcaddy build --with git.gorbe.io/caddy/redirs
Or just copy the build argument
--with git.gorbe.io/caddy/redirs
Go module
go get git.gorbe.io/caddy/redirs@latest
Get the latest commit (if Go module proxy is not updated):
go get "git.gorbe.io/caddy/redirs@$(curl -s 'https://git.gorbe.io/api/v1/repos/caddy/redirs/commits' | jq -r '.[0].sha')"