Переглянути джерело

gopy is now the formal golink server

Breandan Dezendorf 2 роки тому
батько
коміт
5361c8c32c

+ 1 - 0
dezendorf/homelab/k3s/gopy/argocd.sh

@@ -0,0 +1 @@
+argocd app create gopy --repo ssh://git@gogs-ssh.default.svc:2222/breandan/monorepo --path dezendorf/homelab/k3s/gopy --dest-namespace default --dest-server https://kubernetes.default.svc --directory-recurse

+ 8 - 8
dezendorf/homelab/k3s/gopy/gopy.yaml

@@ -44,35 +44,35 @@ spec:
   entryPoints:
     - web
   routes:
-  - match: Host(`gopy`)||Host(`gopy.dezendorf.net`) && Path(`/`)
+  - match: Host(`go`)||Host(`go.dezendorf.net`) && Path(`/{end:$}`)
     kind: Rule
     middlewares:
       - name: gopyhttpsgofqdn
     services:
     - name: gopy
       port: 5000
-  - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/edit`)
+  - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/edit`)
     kind: Rule
     middlewares:
       - name: gopyhttpsgofqdn
     services:
     - name: gopy
       port: 5000
-  - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/add`)
+  - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/add`)
     kind: Rule
     middlewares:
       - name: gopyhttpsgofqdn
     services:
     - name: gopy
       port: 5000
-  - match: (Host(`gopy`)||Host(`gopy.dezendorf.net`)) && Path(`/{url:.*}/delete`)
+  - match: (Host(`go`)||Host(`go.dezendorf.net`)) && Path(`/{url:.*}/delete`)
     kind: Rule
     middlewares:
       - name: gopyhttpsgofqdn
     services:
     - name: gopy
       port: 5000
-  - match: Host(`gopy`)||Host(`gopy.dezendorf.net`)
+  - match: Host(`go`)||Host(`go.dezendorf.net`)
     kind: Rule
     services:
     - name: gopy
@@ -87,7 +87,7 @@ spec:
   entryPoints:
     - websecure
   routes:
-  - match: Host(`gopy.dezendorf.net`)
+  - match: Host(`go.dezendorf.net`)
     kind: Rule
     middlewares:
     - name: authelia
@@ -103,5 +103,5 @@ metadata:
   name: gopyhttpsgofqdn
 spec:
   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}"