mirror of
https://github.com/go-gost/gost.git
synced 2026-10-08 12:05:46 +00:00
test(e2e): add ingress module e2e test suite
Verifies hostname→endpoint routing at the reverse-proxy tunnel entrypoint. A public gost runs a tunnel handler with an ingress mapping example.local→tunnel-UUID and an HTTP entrypoint; an internal client binds a reverse tunnel forwarding to the echo server. A request with a mapped Host is routed through the tunnel to the echo server, while an unmapped Host matches no ingress rule and is rejected.
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
# Public-facing gost: a tunnel handler with an ingress table that maps the
|
||||
# hostname example.local to a tunnel endpoint, plus an HTTP entrypoint on :8420.
|
||||
# External requests to the entrypoint are routed by their Host header through
|
||||
# the ingress table to the matching tunnel.
|
||||
services:
|
||||
- name: service-0
|
||||
addr: ":8421"
|
||||
handler:
|
||||
type: tunnel
|
||||
metadata:
|
||||
entrypoint: ":8420"
|
||||
ingress: ingress-0
|
||||
listener:
|
||||
type: tcp
|
||||
|
||||
ingresses:
|
||||
- name: ingress-0
|
||||
rules:
|
||||
- hostname: example.local
|
||||
endpoint: 6be39003-f4fa-49e4-a6ef-1997684d160e
|
||||
|
||||
log:
|
||||
level: debug
|
||||
Reference in New Issue
Block a user