1
0
mirror of https://github.com/google/nomulus synced 2025-12-23 06:15:42 +00:00

Expose Web WHOIS redirects (#2634)

We are required to respond to HTTP(S) requests on port 80/443 on the
same domain where we serve port 43 WHOIS requests. The proxy already
does this by redirecting to the web WHOIS lookup page on the marketing
website.

This PR makes it so that requests to port 80/443 can be routed to the
proxy for redirect.

TESTED=tested on crash and the redirect works.
This commit is contained in:
Lai Jiang
2025-01-10 12:25:16 -05:00
committed by GitHub
parent c2030e5859
commit cea3da01a0

View File

@@ -38,6 +38,10 @@ spec:
ports:
- containerPort: 30001
name: whois
- containerPort: 30010
name: http-whois
- containerPort: 30011
name: https-whois
resources:
requests:
cpu: "500m"
@@ -104,6 +108,12 @@ spec:
- port: 43
targetPort: whois
name: whois
- port: 80
targetPort: http-whois
name: http-whois
- port: 443
targetPort: https-whois
name: https-whois
---
apiVersion: net.gke.io/v1
kind: ServiceExport