Skip to content

Commit 1df5be2

Browse files
committed
fix router name + update traefik
1 parent 16d3c96 commit 1df5be2

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM traefik:v2.10
1+
FROM traefik:v3.3.4
22

33
ENV TRAEFIK_PROVIDERS_FILE_DIRECTORY="/etc/traefik/traefik.d/"
44
ENV TRAEFIK_ENTRYPOINTS_proxy_ADDRESS=":9440"

traefik.d/pc-v1.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}}
1717

1818
{{define "route"}}
19-
{{ randAlphaNum 10 }}:
19+
{{ .Method | lower }}-{{ .Prefix | replace "/PrismGateway/services/rest/" "" | replace "/" "-" }}:
2020
entryPoints:
2121
- "proxy"
2222
rule: "Host(`{{ default "FQDN_not_configured" (env "FQDN") }}`) && PathPrefix(`{{.Prefix}}`) && Method(`{{.Method}}`)"

traefik.d/pc-v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}}
1717

1818
{{define "route"}}
19-
{{ randAlphaNum 10 }}:
19+
{{ .Method | lower }}-{{ .Prefix | replace "/api/nutanix/" "" | replace "/" "-" }}:
2020
entryPoints:
2121
- "proxy"
2222
rule: "Host(`{{ default "FQDN_not_configured" (env "FQDN") }}`) && PathPrefix(`{{.Prefix}}`) && Method(`{{.Method}}`)"

traefik.d/pc-v3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}}
4242

4343
{{define "route"}}
44-
{{ randAlphaNum 10 }}:
44+
{{ .Method | lower }}-{{ .Prefix | replace "/api/nutanix/" "" | replace "/" "-" }}:
4545
entryPoints:
4646
- "proxy"
4747
rule: "Host(`{{ default "FQDN_not_configured" (env "FQDN") }}`) && PathPrefix(`{{.Prefix}}`) && Method(`{{.Method}}`)"

traefik.d/pc-v4.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}}
3838

3939
{{define "route"}}
40-
{{ randAlphaNum 10 }}:
40+
{{ .Method | lower }}-{{ .Prefix | replace "/api/" "" | replace "/" "-" }}::
4141
entryPoints:
4242
- "proxy"
4343
rule: "Host(`{{ default "FQDN_not_configured" (env "FQDN") }}`) && PathPrefix(`{{.Prefix}}`) && Method(`{{.Method}}`)"

0 commit comments

Comments
 (0)