Field not found, node: address

i am trying to access an openfire server behind traefik. Hopefully, someone can let me know what I am doing wrong.

When adding the address for the service, I get this error.

Cannot start the provider *file.Provider: field not found, node: address

the only other option in the documentation is url, if I use that, I get the error message

error configuring load balancer for service openfire@file: error parsing server URL 172.20.10.3

Here is my dynamic config:

http:
	routers:
	  toOpenfire:
		rule: "HostSNI(`*`)"
		service: openfire
		entryPoints:
		  - "openfire"
	services:
	  openfire:
		loadBalancer:
		  servers:
			- address: "172.20.10.30:5222"

Here is static config:

entryPoints:
    openfire:
        address: :5222
providers:
    file:
        filename: all.yaml
        watch: true
accessLog: {}
log:
  level: ERROR

Hello,

it's because you have an issue in your dynamic configuration:

	services:
	  openfire:
		loadBalancer:
		  servers:
			- address: "172.20.10.30:5222" # <------ invalid

the fix:

	services:
	  openfire:
		loadBalancer:
		  servers:
			- url: "172.20.10.30:5222" # <------ the fix

I figrued it out. I was missing an entire tcp section in yaml. I put it in the http: section

tcp:
  routers:
    toOpenfire:
      rule: "HostSNI(`*`)"
      service: openfire
      entryPoints:
        - "openfire"
    toOpenfireSecure:
      rule: "HostSNI(`*`)"
      service: openfireSecure
      entryPoints:
        - "openfireSecure"
  services:
    openfire:
      loadBalancer:
        servers:
          - address: "172.20.10.30:5222"
    openfireSecure:
      loadBalancer:
        servers:
          - address: "172.20.10.30:5223"

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.