homelab-gitops/hedgedoc/virtualservice.yaml
gwg313 e53e349413
add hedgedoc
Signed-off-by: gwg313 <gwg313@pm.me>
2025-07-27 14:00:22 -04:00

35 lines
703 B
YAML

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: hedgedoc
namespace: hedgedoc
spec:
hosts:
- hdoc.gwg313.xyz
gateways:
- hedgedoc-gateway
http:
- match:
- uri:
prefix: /api/
- uri:
prefix: /realtime
- uri:
prefix: /uploads/
- uri:
prefix: /public/
- uri:
prefix: /apidoc/
route:
- destination:
host: hedgedoc-backend
port:
number: 3000
- match:
- uri:
prefix: /
route:
- destination:
host: hedgedoc-frontend
port:
number: 80