fix: use MaxInt32.

This commit is contained in:
Ludovic Fernandez 2019-11-15 20:14:04 +01:00 committed by Traefiker Bot
parent 3bdeb75cc2
commit bfa61c8f67
8 changed files with 18 additions and 18 deletions

View file

@ -6,7 +6,7 @@
], ],
"service": "api@internal", "service": "api@internal",
"rule": "PathPrefix(`/api`)", "rule": "PathPrefix(`/api`)",
"priority": 9223372036854775806, "priority": 2147483646,
"status": "enabled", "status": "enabled",
"using": [ "using": [
"traefik" "traefik"
@ -22,7 +22,7 @@
], ],
"service": "dashboard@internal", "service": "dashboard@internal",
"rule": "PathPrefix(`/`)", "rule": "PathPrefix(`/`)",
"priority": 9223372036854775805, "priority": 2147483645,
"status": "enabled", "status": "enabled",
"using": [ "using": [
"traefik" "traefik"

View file

@ -7,7 +7,7 @@
], ],
"service": "api@internal", "service": "api@internal",
"rule": "PathPrefix(`/api`)", "rule": "PathPrefix(`/api`)",
"priority": 9223372036854775806 "priority": 2147483646
}, },
"dashboard": { "dashboard": {
"entryPoints": [ "entryPoints": [
@ -19,7 +19,7 @@
], ],
"service": "dashboard@internal", "service": "dashboard@internal",
"rule": "PathPrefix(`/`)", "rule": "PathPrefix(`/`)",
"priority": 9223372036854775805 "priority": 2147483645
} }
}, },
"middlewares": { "middlewares": {

View file

@ -7,7 +7,7 @@
], ],
"service": "api@internal", "service": "api@internal",
"rule": "PathPrefix(`/api`)", "rule": "PathPrefix(`/api`)",
"priority": 9223372036854775806 "priority": 2147483646
} }
}, },
"services": { "services": {

View file

@ -7,7 +7,7 @@
], ],
"service": "api@internal", "service": "api@internal",
"rule": "PathPrefix(`/api`)", "rule": "PathPrefix(`/api`)",
"priority": 9223372036854775806 "priority": 2147483646
}, },
"dashboard": { "dashboard": {
"entryPoints": [ "entryPoints": [
@ -19,7 +19,7 @@
], ],
"service": "dashboard@internal", "service": "dashboard@internal",
"rule": "PathPrefix(`/`)", "rule": "PathPrefix(`/`)",
"priority": 9223372036854775805 "priority": 2147483645
}, },
"ping": { "ping": {
"entryPoints": [ "entryPoints": [
@ -27,7 +27,7 @@
], ],
"service": "ping@internal", "service": "ping@internal",
"rule": "PathPrefix(`/ping`)", "rule": "PathPrefix(`/ping`)",
"priority": 9223372036854775807 "priority": 2147483647
}, },
"prometheus": { "prometheus": {
"entryPoints": [ "entryPoints": [
@ -35,7 +35,7 @@
], ],
"service": "prometheus@internal", "service": "prometheus@internal",
"rule": "PathPrefix(`/metrics`)", "rule": "PathPrefix(`/metrics`)",
"priority": 9223372036854775807 "priority": 2147483647
}, },
"rest": { "rest": {
"entryPoints": [ "entryPoints": [
@ -43,7 +43,7 @@
], ],
"service": "rest@internal", "service": "rest@internal",
"rule": "PathPrefix(`/api/providers`)", "rule": "PathPrefix(`/api/providers`)",
"priority": 9223372036854775807 "priority": 2147483647
} }
}, },
"middlewares": { "middlewares": {

View file

@ -7,7 +7,7 @@
], ],
"service": "ping@internal", "service": "ping@internal",
"rule": "PathPrefix(`/ping`)", "rule": "PathPrefix(`/ping`)",
"priority": 9223372036854775807 "priority": 2147483647
} }
}, },
"services": { "services": {

View file

@ -7,7 +7,7 @@
], ],
"service": "prometheus@internal", "service": "prometheus@internal",
"rule": "PathPrefix(`/metrics`)", "rule": "PathPrefix(`/metrics`)",
"priority": 9223372036854775807 "priority": 2147483647
} }
}, },
"services": { "services": {

View file

@ -7,7 +7,7 @@
], ],
"service": "rest@internal", "service": "rest@internal",
"rule": "PathPrefix(`/api/providers`)", "rule": "PathPrefix(`/api/providers`)",
"priority": 9223372036854775807 "priority": 2147483647
} }
}, },
"services": { "services": {

View file

@ -71,7 +71,7 @@ func (i *Provider) apiConfiguration(cfg *dynamic.Configuration) {
cfg.HTTP.Routers["api"] = &dynamic.Router{ cfg.HTTP.Routers["api"] = &dynamic.Router{
EntryPoints: []string{"traefik"}, EntryPoints: []string{"traefik"},
Service: "api@internal", Service: "api@internal",
Priority: math.MaxInt64 - 1, Priority: math.MaxInt32 - 1,
Rule: "PathPrefix(`/api`)", Rule: "PathPrefix(`/api`)",
} }
@ -79,7 +79,7 @@ func (i *Provider) apiConfiguration(cfg *dynamic.Configuration) {
cfg.HTTP.Routers["dashboard"] = &dynamic.Router{ cfg.HTTP.Routers["dashboard"] = &dynamic.Router{
EntryPoints: []string{"traefik"}, EntryPoints: []string{"traefik"},
Service: "dashboard@internal", Service: "dashboard@internal",
Priority: math.MaxInt64 - 2, Priority: math.MaxInt32 - 2,
Rule: "PathPrefix(`/`)", Rule: "PathPrefix(`/`)",
Middlewares: []string{"dashboard_redirect@internal", "dashboard_stripprefix@internal"}, Middlewares: []string{"dashboard_redirect@internal", "dashboard_stripprefix@internal"},
} }
@ -113,7 +113,7 @@ func (i *Provider) pingConfiguration(cfg *dynamic.Configuration) {
cfg.HTTP.Routers["ping"] = &dynamic.Router{ cfg.HTTP.Routers["ping"] = &dynamic.Router{
EntryPoints: []string{i.staticCfg.Ping.EntryPoint}, EntryPoints: []string{i.staticCfg.Ping.EntryPoint},
Service: "ping@internal", Service: "ping@internal",
Priority: math.MaxInt64, Priority: math.MaxInt32,
Rule: "PathPrefix(`/ping`)", Rule: "PathPrefix(`/ping`)",
} }
} }
@ -130,7 +130,7 @@ func (i *Provider) restConfiguration(cfg *dynamic.Configuration) {
cfg.HTTP.Routers["rest"] = &dynamic.Router{ cfg.HTTP.Routers["rest"] = &dynamic.Router{
EntryPoints: []string{"traefik"}, EntryPoints: []string{"traefik"},
Service: "rest@internal", Service: "rest@internal",
Priority: math.MaxInt64, Priority: math.MaxInt32,
Rule: "PathPrefix(`/api/providers`)", Rule: "PathPrefix(`/api/providers`)",
} }
} }
@ -147,7 +147,7 @@ func (i *Provider) prometheusConfiguration(cfg *dynamic.Configuration) {
cfg.HTTP.Routers["prometheus"] = &dynamic.Router{ cfg.HTTP.Routers["prometheus"] = &dynamic.Router{
EntryPoints: []string{i.staticCfg.Metrics.Prometheus.EntryPoint}, EntryPoints: []string{i.staticCfg.Metrics.Prometheus.EntryPoint},
Service: "prometheus@internal", Service: "prometheus@internal",
Priority: math.MaxInt64, Priority: math.MaxInt32,
Rule: "PathPrefix(`/metrics`)", Rule: "PathPrefix(`/metrics`)",
} }
} }