mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-16 02:04:04 +02:00
example fix
This commit is contained in:
parent
dc43e26770
commit
1c611cc9b9
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue