34 lines
827 B
YAML
34 lines
827 B
YAML
|
|
apiVersion: gateway.networking.k8s.io/v1
|
||
|
|
kind: HTTPRoute
|
||
|
|
metadata:
|
||
|
|
name: osint
|
||
|
|
namespace: osint
|
||
|
|
spec:
|
||
|
|
parentRefs:
|
||
|
|
- name: public
|
||
|
|
namespace: gateway-system
|
||
|
|
hostnames:
|
||
|
|
- osint.siriusdevops.com
|
||
|
|
rules:
|
||
|
|
# Same-origin SAR tile proxy: /titiler/... -> titiler /... (prefix stripped,
|
||
|
|
# matching the old nginx vhost's `proxy_pass ...:8001/`).
|
||
|
|
- matches:
|
||
|
|
- path:
|
||
|
|
type: PathPrefix
|
||
|
|
value: /titiler
|
||
|
|
filters:
|
||
|
|
- type: URLRewrite
|
||
|
|
urlRewrite:
|
||
|
|
path:
|
||
|
|
type: ReplacePrefixMatch
|
||
|
|
replacePrefixMatch: /
|
||
|
|
backendRefs:
|
||
|
|
- name: osint-titiler
|
||
|
|
port: 8000
|
||
|
|
- matches:
|
||
|
|
- path:
|
||
|
|
type: PathPrefix
|
||
|
|
value: /
|
||
|
|
backendRefs:
|
||
|
|
- name: osint-app
|
||
|
|
port: 8000
|