example fix

This commit is contained in:
yusing 2024-09-24 03:13:39 +08:00
parent dc43e26770
commit 1c611cc9b9

View file

@ -1,12 +1,11 @@
example: # matching `app.y.z` example: # matching `example.y.z`
scheme: https scheme: https
host: 10.0.0.1 host: 10.0.0.1
port: 80 port: 80
path_patterns: # Check https://pkg.go.dev/net/http#hdr-Patterns-ServeMux for syntax path_patterns: # Check https://pkg.go.dev/net/http#hdr-Patterns-ServeMux for syntax
- GET / # accept any GET request - GET / # accept any GET request
- POST /auth # for /auth and /auth/* accept only POST - POST /auth # for /auth and /auth/* accept only POST
- GET /home/{$} - GET /home/{$} # for exactly /home
- /b/{bucket}/o/{any}
no_tls_verify: false no_tls_verify: false
set_headers: set_headers:
HEADER_A: VALUE_A, VALUE_B HEADER_A: VALUE_A, VALUE_B
@ -17,6 +16,6 @@ example: # matching `app.y.z`
app1: # app1 -> localhost:8080 app1: # app1 -> localhost:8080
port: 8080 port: 8080
app2: app2:
scheme: tcp scheme: udp
host: 10.0.0.2 host: 10.0.0.2
port: 20000:tcp port: 2223:dns