No description
Find a file
Daniel Gorbe b005712d82
All checks were successful
go test / go-test (push) Successful in 10m17s
Go Report Card / generate-report (push) Successful in 1m48s
pkg.go.dev / pull-new-commit (push) Successful in 4m13s
Move to Forgejo Runner
2025-10-10 21:21:10 +02:00
.github/workflows Move to Forgejo Runner 2025-10-10 21:21:10 +02:00
.gitignore Ignore caddy binary 2025-08-07 04:09:36 +02:00
go.mod Init module 2025-08-07 04:00:30 +02:00
go.sum Init module 2025-08-07 04:00:30 +02:00
LICENSE Initial commit 2025-08-06 15:01:54 +02:00
random.go Revert "Fix missing call the next handler in the chain" 2025-08-07 06:29:10 +02:00
README.md Init module 2025-08-07 04:00:30 +02:00

redirs

Go Reference Go Report Card

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')"