caddy

(β˜… 75,074)

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

  • .editorconfig
  • .gitattributes
  • .gitignore
  • .golangci.yml
  • .goreleaser.yml
  • .pre-commit-config.yaml
  • admin.go
  • admin_test.go
  • AGENTS.md
  • AUTHORS
  • caddy.go
  • caddy_test.go
  • context.go
  • context_test.go
  • duration_fuzz.go
  • filepath.go
  • filepath_windows.go
  • filesystem.go
  • go.mod
  • go.sum
  • LICENSE
  • listen.go
  • listen_reuseUnixSocket.go
  • listen_reuseUnixSocket_windows.go
  • listen_unix.go
  • listen_unix_setopt.go
  • listen_unix_setopt_freebsd.go
  • listeners.go
  • listeners_fuzz.go
  • listeners_test.go
  • logging.go
  • logging_test.go
  • metrics.go
  • modules.go
  • modules_test.go
  • README.md
  • replacer.go
  • replacer_fuzz.go
  • replacer_test.go
  • service_windows.go
  • sigtrap.go
  • sigtrap_nonposix.go
  • sigtrap_posix.go
  • storage.go
  • usagepool.go

# Installation Guide

1. Get the code
git clone https://github.com/caddyserver/caddy

Downloads the entire project code from GitHub to your computer.

cd caddy

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
$ go build

Compiles the Go program into an executable.

$ go run -exec ./setcap.sh main.go

Runs the Go program directly without a separate build step.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

// repository documentation