mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-07 16:00:29 -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:
|
||||
- match: Host(`test.durp.info`) && PathPrefix(`/`)
|
||||
kind: Rule
|
||||
middlewares:
|
||||
- name: example-redirectregex
|
||||
namespace: traefik
|
||||
services:
|
||||
- name: service0
|
||||
port: 443
|
||||
|
|
@ -38,3 +41,14 @@ spec:
|
|||
commonName: "test.durp.info"
|
||||
dnsNames:
|
||||
- "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