diff --git a/apps/infra/net/certs/certificate-fillcode-com.yaml b/apps/apps/fillcode/certificate-fillcode-com.yaml similarity index 83% rename from apps/infra/net/certs/certificate-fillcode-com.yaml rename to apps/apps/fillcode/certificate-fillcode-com.yaml index e521778..5d9619c 100644 --- a/apps/infra/net/certs/certificate-fillcode-com.yaml +++ b/apps/apps/fillcode/certificate-fillcode-com.yaml @@ -2,7 +2,7 @@ apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: fillcode-com-crt - namespace: infra-net + namespace: apps spec: secretName: fillcode-com-crt issuerRef: @@ -11,4 +11,4 @@ spec: group: cert-manager.io dnsNames: - "fillcode.com" - - "*.fillcode.com" \ No newline at end of file + - "*.fillcode.com" diff --git a/apps/apps/fillcode/ingress-http.yaml b/apps/apps/fillcode/ingress-http.yaml new file mode 100644 index 0000000..86ddce2 --- /dev/null +++ b/apps/apps/fillcode/ingress-http.yaml @@ -0,0 +1,24 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: fillcode + namespace: apps + annotations: + nginx.ingress.kubernetes.io/rewrite-target: /fillcode +spec: + ingressClassName: nginx + tls: + - hosts: + - fillcode.com + secretName: fillcode-com-crt + rules: + - host: fillcode.com + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: halo + port: + number: 80 diff --git a/apps/infra/net/certs/certificate-dev-cm.yaml b/apps/infra/net/nginx/certificate-dev-cm.yaml similarity index 100% rename from apps/infra/net/certs/certificate-dev-cm.yaml rename to apps/infra/net/nginx/certificate-dev-cm.yaml diff --git a/apps/infra/net/nginx/configmap-html.yaml b/apps/infra/net/nginx/configmap-html.yaml index 2cf4e90..f616302 100644 --- a/apps/infra/net/nginx/configmap-html.yaml +++ b/apps/infra/net/nginx/configmap-html.yaml @@ -4,12 +4,13 @@ metadata: name: custom-html namespace: infra-net data: - 404.html: | + 403.html: |
-