Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 26 additions & 10 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,43 +53,59 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

integration-test-latest:
integration-test-labels:
needs: [run]
permissions:
contents: read
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
traefik: [v3.6, v3.7, latest]
env:
TRAEFIK_TAG: ${{ matrix.traefik }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7

- name: run
run: go run test.go
working-directory: ./ci
env:
TRAEFIK_TAG: latest

- name: capture logs
if: ${{ always() }}
run: docker compose logs --tail 100 nginx nginx2 traefik
working-directory: ./ci

- name: cleanup
if: ${{ always() }}
run: docker compose logs --tail 100 nginx nginx2 traefik && docker compose down
run: docker compose down
working-directory: ./ci

integration-test:
needs: [integration-test-latest]
integration-test-multilayer-routing:
needs: [run]
permissions:
contents: read
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
traefik: [v2.11, v3.0, v3.1, v3.2, v3.3, v3.4, v3.5, v3.6, v3.7]
traefik: [v3.6, v3.7, latest]
env:
COMPOSE_FILE: docker-compose.multilayer.yml
TRAEFIK_TAG: ${{ matrix.traefik }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7

- name: run
run: go run test.go
working-directory: ./ci
env:
TRAEFIK_TAG: ${{ matrix.traefik }}

- name: capture logs
if: ${{ always() }}
run: docker compose logs --tail 100 nginx nginx2 traefik
working-directory: ./ci

- name: cleanup
if: ${{ always() }}
run: docker compose logs --tail 100 nginx nginx2 traefik && docker compose down
run: docker compose down
working-directory: ./ci
60 changes: 0 additions & 60 deletions .github/workflows/stress-test.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions .traefik.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
displayName: Captcha Protect
summary: Add an anti-bot challenge to individual IPs in a subnet when traffic spikes are detected from that subnet
summary: Add an anti-bot challenge to protected routes
type: middleware
import: github.com/libops/captcha-protect
testData:
ProtectRoutes: /
ChallengeTmpl: challenge.tmpl.html
Window: 86400
RateLimit: 20
IPForwardedHeader: "X-Forwarded-For"
CaptchaProvider: turnstile
SiteKey: 1x00000000000000000000AA
SecretKey: 1x0000000000000000000000000000000AA
EnableStateReconciliation: "false"
Loading