mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-09 00:31:31 -05:00
update
This commit is contained in:
parent
3b65e94019
commit
bdf93b5a06
1 changed files with 14 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ spec:
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`test.durp.info`) && PathPrefix(`/`)
|
- match: Host(`test.durp.info`) && PathPrefix(`/`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
middlewares:
|
||||||
|
- name: example-redirectregex
|
||||||
|
namespace: traefik
|
||||||
services:
|
services:
|
||||||
- name: service0
|
- name: service0
|
||||||
port: 443
|
port: 443
|
||||||
|
|
@ -38,3 +41,14 @@ spec:
|
||||||
commonName: "test.durp.info"
|
commonName: "test.durp.info"
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- "test.durp.info"
|
- "test.durp.info"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: example-redirectregex
|
||||||
|
spec:
|
||||||
|
redirectRegex:
|
||||||
|
regex: ^https://example.com/(.*)
|
||||||
|
replacement: https://google.com/${1}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue