Skip to content

Commit 49c2b0b

Browse files
committed
update
1 parent ad70d48 commit 49c2b0b

File tree

8 files changed

+540
-314
lines changed

8 files changed

+540
-314
lines changed

.assets/icon.png

-8.96 KB
Loading

.traefik.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
displayName: Demo Plugin
1+
displayName: Tailscale Access Only
22
type: middleware
33
iconPath: .assets/icon.png
44

5-
import: github.com/traefik/plugindemo
5+
import: github.com/yourusername/tailscale-access
66

7-
summary: '[Demo] Add Request Header'
7+
summary: 'Allows access only to clients connected via Tailscale'
88

99
testData:
10-
Headers:
11-
X-Demo: test
12-
X-URL: '{{URL}}'
10+
TailscaleRanges:
11+
- "100.64.0.0/10"
12+
EnableDebugLogging: true
13+
CustomErrorMessage: "Access denied: Tailscale connection required"

demo.go

Lines changed: 0 additions & 66 deletions
This file was deleted.

demo_test.go

Lines changed: 0 additions & 49 deletions
This file was deleted.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/traefik/plugindemo
1+
module github.com/hhftechnology/tailscale-access
22

3-
go 1.19
3+
go 1.19

0 commit comments

Comments
 (0)