|
| 1 | +# THESE ROUTES ARE TEMPORARILY LIVING HERE AS OPPOSED TO THE NGINX GATEWAY NAMESPACE |
| 2 | +# AS THEY ARE A TEMPORARY DEPLOYMENT, WE WILL BE REMOVING THESE ONCE WE STOP HOSTING |
| 3 | +# THE CODE JAM WINNER PROJECTS. |
| 4 | + |
| 5 | +apiVersion: gateway.networking.k8s.io/v1 |
| 6 | +kind: HTTPRoute |
| 7 | +metadata: |
| 8 | + name: code-jam-winners |
| 9 | + namespace: nginx-gateway |
| 10 | +spec: |
| 11 | + hostnames: |
| 12 | + - gardenias.pydis.com |
| 13 | + - monsteras.pydis.com |
| 14 | + - tulips.pydis.com |
| 15 | + parentRefs: |
| 16 | + - name: nginx |
| 17 | + namespace: nginx-gateway |
| 18 | + rules: |
| 19 | + - matches: |
| 20 | + - headers: |
| 21 | + - name: host |
| 22 | + value: "gardenias.pydis.com" |
| 23 | + backendRefs: |
| 24 | + - name: gardenias |
| 25 | + namespace: code-jam |
| 26 | + port: 80 |
| 27 | + filters: |
| 28 | + - type: ExtensionRef |
| 29 | + extensionRef: |
| 30 | + group: gateway.nginx.org |
| 31 | + kind: SnippetsFilter |
| 32 | + name: enforce-mtls |
| 33 | + - matches: |
| 34 | + - headers: |
| 35 | + - name: host |
| 36 | + value: "monsteras.pydis.com" |
| 37 | + backendRefs: |
| 38 | + - name: monsteras |
| 39 | + namespace: code-jam |
| 40 | + port: 80 |
| 41 | + filters: |
| 42 | + - type: ExtensionRef |
| 43 | + extensionRef: |
| 44 | + group: gateway.nginx.org |
| 45 | + kind: SnippetsFilter |
| 46 | + name: enforce-mtls |
| 47 | + - matches: |
| 48 | + - headers: |
| 49 | + - name: host |
| 50 | + value: "tulips.pydis.com" |
| 51 | + backendRefs: |
| 52 | + - name: tulips |
| 53 | + namespace: code-jam |
| 54 | + port: 80 |
| 55 | + filters: |
| 56 | + - type: ExtensionRef |
| 57 | + extensionRef: |
| 58 | + group: gateway.nginx.org |
| 59 | + kind: SnippetsFilter |
| 60 | + name: enforce-mtls |
| 61 | +--- |
| 62 | +apiVersion: gateway.networking.k8s.io/v1 |
| 63 | +kind: HTTPRoute |
| 64 | +metadata: |
| 65 | + name: code-jam-redirects |
| 66 | + namespace: nginx-gateway |
| 67 | +spec: |
| 68 | + hostnames: |
| 69 | + - gardenias.pythondiscord.com |
| 70 | + - monsteras.pythondiscord.com |
| 71 | + - tulips.pythondiscord.com |
| 72 | + parentRefs: |
| 73 | + - name: nginx |
| 74 | + namespace: nginx-gateway |
| 75 | + rules: |
| 76 | + - matches: |
| 77 | + - headers: |
| 78 | + - name: host |
| 79 | + value: "gardenias.pythondiscord.com" |
| 80 | + filters: |
| 81 | + - type: ExtensionRef |
| 82 | + extensionRef: |
| 83 | + group: gateway.nginx.org |
| 84 | + kind: SnippetsFilter |
| 85 | + name: enforce-mtls |
| 86 | + - type: RequestRedirect |
| 87 | + requestRedirect: |
| 88 | + scheme: https |
| 89 | + hostname: "gardenias.pydis.com" |
| 90 | + statusCode: 302 |
| 91 | + - matches: |
| 92 | + - headers: |
| 93 | + - name: host |
| 94 | + value: "monsteras.pythondiscord.com" |
| 95 | + filters: |
| 96 | + - type: ExtensionRef |
| 97 | + extensionRef: |
| 98 | + group: gateway.nginx.org |
| 99 | + kind: SnippetsFilter |
| 100 | + name: enforce-mtls |
| 101 | + - type: RequestRedirect |
| 102 | + requestRedirect: |
| 103 | + scheme: https |
| 104 | + hostname: "monsteras.pydis.com" |
| 105 | + statusCode: 302 |
| 106 | + - matches: |
| 107 | + - headers: |
| 108 | + - name: host |
| 109 | + value: "tulips.pythondiscord.com" |
| 110 | + filters: |
| 111 | + - type: ExtensionRef |
| 112 | + extensionRef: |
| 113 | + group: gateway.nginx.org |
| 114 | + kind: SnippetsFilter |
| 115 | + name: enforce-mtls |
| 116 | + - type: RequestRedirect |
| 117 | + requestRedirect: |
| 118 | + scheme: https |
| 119 | + hostname: "tulips.pydis.com" |
| 120 | + statusCode: 302 |
0 commit comments