Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Caddy 2 #74

Merged
merged 58 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
e92fe97
Begin refactor for Caddy 2
mholt Apr 20, 2020
03a7df4
Fix misuse of sync.Pool (#76)
darhwa Jun 20, 2020
8d6f47b
Support v2 Caddyfile (#79)
klzgrad Oct 2, 2020
7b5b582
General cleanup
mholt Dec 4, 2020
ebb2fce
revert TestConnectAuthWrongProbeResist
sergeyfrolov Dec 5, 2020
0c30e89
TestConnectAuthWrongProbeResist: add debug print
sergeyfrolov Dec 5, 2020
87f2f2f
Fix Probe Resist tests' output
sergeyfrolov Dec 5, 2020
9bab45d
Merge branch 'master' into caddy2
mholt Dec 6, 2020
9fe1292
Run gofmt
mholt Dec 6, 2020
509e7ec
Finish updating tests for now
mholt Feb 8, 2021
84f6867
Minor cleanups and tidying
mholt Feb 24, 2021
75511e6
Remove dialLocal
sergeyfrolov Feb 28, 2021
2a9402b
Fix TestWhitelistAllowing
sergeyfrolov Feb 28, 2021
1e6dbb1
Remove localDialAddr
sergeyfrolov Feb 28, 2021
6d9747a
Fix tls setup code in tests
mholt Mar 1, 2021
7b288bc
Support HTTP/3 (#80)
klzgrad Jun 7, 2021
a7059fa
Merge branch 'master' into caddy2
gaby Mar 22, 2023
44bd8c7
Fix multiauth
Mygod Apr 26, 2023
51a9bb5
Remove useless fields
Mygod Apr 26, 2023
035199e
Add support for printing user id in log
Mygod Apr 28, 2023
0ea925f
Start to update README for Caddy 2
mholt May 9, 2023
685d1d0
Update dependencies
mholt May 9, 2023
8b5d75a
Buffer http response instead of writing directly (#106)
Mygod May 29, 2023
df7dc95
Update dependencies, add support for Github Actions. Formatting and l…
gaby Jun 25, 2023
5b23d1a
Remove oldstable from matrix and platforms until tests are stable.
gaby Jun 25, 2023
da96a33
Fix some of the gosec/golangci-lint issues
gaby Jun 25, 2023
0d92f63
Downgrade qtls-go to v0.2.2
gaby Jun 25, 2023
3a10a41
Add more workflows, fix warnings from several linters
gaby Jun 27, 2023
b6d4eb8
More linter fixes
gaby Jun 27, 2023
2e45608
Remove go vet
gaby Jun 27, 2023
a29f011
Merge branch 'caddy2' into v2multiauth
Mygod Jul 19, 2023
4e71e85
Log invalid user as well
Mygod Jul 20, 2023
6a4bb51
Refine error user
Mygod Jul 21, 2023
d7ab126
Update Caddy to v2.7.1
gaby Aug 3, 2023
71e3f6e
fix acl_test.go test cases, restore the acl error logic to be the sam…
johnzhanghua Sep 25, 2023
5b6051e
fix probe_resist_test.go test cases, the repose header['Alt-Svc'] is …
johnzhanghua Sep 25, 2023
65d0590
Merge pull request #109 from johnzhanghua/caddy2_fix_tests
gaby Oct 29, 2023
2ae345a
Cleanup go.sum file
gaby Oct 29, 2023
acd1337
Update golang.org/x/net
gaby Oct 29, 2023
fd47e41
Increase golangci-lint timeout to 5min
gaby Oct 29, 2023
9de7188
Fix arg to golangci-lint
gaby Oct 29, 2023
397bfdf
Merge remote-tracking branch 'origin/caddy2' into v2multiauth
Mygod Oct 29, 2023
cd93f0e
Fix upstream creds in test
Mygod Nov 2, 2023
611a439
Fix encoded len
Mygod Nov 2, 2023
9976c57
Oops
Mygod Nov 2, 2023
226c444
Remove duplicate code
Mygod Nov 5, 2023
5b0898c
Remove useless field
Mygod Nov 5, 2023
31f01c9
Merge pull request #99 from Mygod/v2multiauth
gaby Nov 5, 2023
2f2742b
Bump github-actions
gaby Jan 9, 2024
9c191f5
migrate from http.Flusher to http.NewResponseController
WeidiDeng Jan 17, 2024
90e3711
migrate from http.Hijacker to http.NewResponseController
WeidiDeng Jan 19, 2024
5ab96ca
Add platforms to CI
gaby Jan 27, 2024
3befe51
Remove macos from platforms
gaby Jan 27, 2024
558230f
Bump dependencies. Add go1.22
gaby Feb 12, 2024
32f2633
Update workflows to use go-stable. Remove staticcheck workflow
gaby Feb 12, 2024
284b217
Bump quic-go to v0.41.0
gaby Feb 12, 2024
46e92f5
Remove go1.20 from workflows
gaby Feb 12, 2024
bf7eb31
Use golangci-lint setup from caddyserver/server. Fix all issues
gaby Feb 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
33 changes: 33 additions & 0 deletions .github/workflows/go-critic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Gocritic Scan

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
gocritic-scan:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache: false
- name: Install go-critic
run: go install -v github.com/go-critic/go-critic/cmd/gocritic@latest
- name: Run gocritic
run: gocritic check -checkTests=False ./...
25 changes: 25 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Golangci Lint Check

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Run golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
golangci_lint_flags: "--tests=false"
33 changes: 33 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Gosec Security Scan

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
gosec-scan:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache: false
- name: Install Gosec
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
- name: Run Gosec
run: gosec ./...
33 changes: 33 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Govulncheck Security Scan

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
govulncheck-check:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache: false
- name: Install Govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run Govulncheck
run: govulncheck ./...
33 changes: 33 additions & 0 deletions .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Staticcheck Scan

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
staticcheck-scan:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache: false
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck -tests=False ./...
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Tests"

on:
push:
branches:
- "master"
- "main"
paths-ignore:
- "**.md"
pull_request:
branches:
- "*"
paths-ignore:
- "**.md"

jobs:
Tests:
strategy:
matrix:
go-version:
- stable
platform:
- ubuntu-latest
runs-on: ${{ matrix.platform }}
steps:
- name: Fetch Repository
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '${{ matrix.go-version }}'
- name: Run test
run: go test -v ./...
- name: Run test -race
run: go test -v -race ./...
4 changes: 0 additions & 4 deletions .golangci.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

Loading