Some checks failed
Build and Deploy / build (push) Has been cancelled
- Create redirect-https middleware for permanent redirect (301) - Split IngressRoute: HTTP route redirects to HTTPS, HTTPS route serves app - Fixes Google Search Console 404 error on HTTP version - No application code changes, only routing configuration
34 lines
688 B
YAML
34 lines
688 B
YAML
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: storefront
|
|
namespace: manoonoils
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- kind: Rule
|
|
match: Host(`manoonoils.com`) || Host(`www.manoonoils.com`)
|
|
middlewares:
|
|
- name: redirect-https
|
|
services:
|
|
- name: storefront
|
|
port: 3000
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: storefront-secure
|
|
namespace: manoonoils
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- kind: Rule
|
|
match: Host(`manoonoils.com`) || Host(`www.manoonoils.com`)
|
|
services:
|
|
- name: storefront
|
|
port: 3000
|
|
tls:
|
|
certResolver: letsencrypt
|