mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
28 lines
679 B
YAML
28 lines
679 B
YAML
example: # matching `example.y.z`
|
|
scheme: https
|
|
host: 10.0.0.1
|
|
port: 80
|
|
path_patterns: # Check https://pkg.go.dev/net/http#hdr-Patterns-ServeMux for syntax
|
|
- GET / # accept any GET request
|
|
- POST /auth # for /auth and /auth/* accept only POST
|
|
- GET /home/{$} # for exactly /home
|
|
no_tls_verify: false
|
|
middlewares:
|
|
cidr_whitelist:
|
|
allow:
|
|
- 127.0.0.1
|
|
- 10.0.0.0/8
|
|
status_code: 403
|
|
message: "IP not allowed"
|
|
homepage:
|
|
name: Example App
|
|
icon: png/example.png
|
|
description: An example app
|
|
category: example
|
|
|
|
app1: # app1 -> localhost:8080
|
|
port: 8080
|
|
app2:
|
|
scheme: udp
|
|
host: 10.0.0.2
|
|
port: 2223:dns
|