|
@@ -44,35 +44,35 @@ spec:
|
|
|
entryPoints:
|
|
entryPoints:
|
|
|
- web
|
|
- web
|
|
|
routes:
|
|
routes:
|
|
|
- - match: Host(`gopy`)||Host(`gopy.dezendorf.net`) && Path(`/`)
|
|
|
|
|
|
|
+ - match: Host(`go`)||Host(`go.dezendorf.net`) && Path(`/{end:$}`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
middlewares:
|
|
middlewares:
|
|
|
- name: gopyhttpsgofqdn
|
|
- name: gopyhttpsgofqdn
|
|
|
services:
|
|
services:
|
|
|
- name: gopy
|
|
- name: gopy
|
|
|
port: 5000
|
|
port: 5000
|
|
|
- - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/edit`)
|
|
|
|
|
|
|
+ - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/edit`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
middlewares:
|
|
middlewares:
|
|
|
- name: gopyhttpsgofqdn
|
|
- name: gopyhttpsgofqdn
|
|
|
services:
|
|
services:
|
|
|
- name: gopy
|
|
- name: gopy
|
|
|
port: 5000
|
|
port: 5000
|
|
|
- - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/add`)
|
|
|
|
|
|
|
+ - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/add`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
middlewares:
|
|
middlewares:
|
|
|
- name: gopyhttpsgofqdn
|
|
- name: gopyhttpsgofqdn
|
|
|
services:
|
|
services:
|
|
|
- name: gopy
|
|
- name: gopy
|
|
|
port: 5000
|
|
port: 5000
|
|
|
- - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/delete`)
|
|
|
|
|
|
|
+ - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/delete`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
middlewares:
|
|
middlewares:
|
|
|
- name: gopyhttpsgofqdn
|
|
- name: gopyhttpsgofqdn
|
|
|
services:
|
|
services:
|
|
|
- name: gopy
|
|
- name: gopy
|
|
|
port: 5000
|
|
port: 5000
|
|
|
- - match: Host(`gopy`)||Host(`gopy.dezendorf.net`)
|
|
|
|
|
|
|
+ - match: Host(`go`)||Host(`go.dezendorf.net`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
services:
|
|
services:
|
|
|
- name: gopy
|
|
- name: gopy
|
|
@@ -87,7 +87,7 @@ spec:
|
|
|
entryPoints:
|
|
entryPoints:
|
|
|
- websecure
|
|
- websecure
|
|
|
routes:
|
|
routes:
|
|
|
- - match: Host(`gopy.dezendorf.net`)
|
|
|
|
|
|
|
+ - match: Host(`go.dezendorf.net`)
|
|
|
kind: Rule
|
|
kind: Rule
|
|
|
middlewares:
|
|
middlewares:
|
|
|
- name: authelia
|
|
- name: authelia
|
|
@@ -103,5 +103,5 @@ metadata:
|
|
|
name: gopyhttpsgofqdn
|
|
name: gopyhttpsgofqdn
|
|
|
spec:
|
|
spec:
|
|
|
redirectRegex:
|
|
redirectRegex:
|
|
|
- regex: "^http(s)?://(gopy(.dezendorf.net)?)/(.+)?$"
|
|
|
|
|
- replacement: "https://gopy.dezendorf.net/${4}"
|
|
|
|
|
|
|
+ regex: "^http(s)?://(go(.dezendorf.net)?)/(.+)?$"
|
|
|
|
|
+ replacement: "https://go.dezendorf.net/${4}"
|