#ddev-generated
# If you remove the ddev-generated line above you
# are responsible for maintaining this file. DDEV will not then
# update it, for example if you add `additional_hostnames`, etc.

http:
  routers:
    geo-web-80-http:
      entrypoints:
        - http-80
      rule: HostRegexp(`^geo\.ddev\.site$`)
      
      service: "geo-web-80"
      ruleSyntax: v3
      tls: false
      # middlewares:
      #   - "geo-redirectHttps"
    geo-web-8025-http:
      entrypoints:
        - http-8025
      rule: HostRegexp(`^geo\.ddev\.site$`)
      
      service: "geo-web-8025"
      ruleSyntax: v3
      tls: false
      # middlewares:
      #   - "geo-redirectHttps"
    
    
    
    geo-web-80-https:
      entrypoints:
        - http-443
      rule: HostRegexp(`^geo\.ddev\.site$`)
      
      service: "geo-web-80"
      ruleSyntax: v3
      
      tls: true
      
    geo-web-8025-https:
      entrypoints:
        - http-8026
      rule: HostRegexp(`^geo\.ddev\.site$`)
      
      service: "geo-web-8025"
      ruleSyntax: v3
      
      tls: true
      
    

  middlewares:
    geo-redirectHttps:
      redirectScheme:
        scheme: https
        permanent: true

  services:
    geo-web-80:
      loadbalancer:
        servers:
          - url: http://ddev-geo-web:80
        
    geo-web-8025:
      loadbalancer:
        servers:
          - url: http://ddev-geo-web:8025
        
    
    
    

tls:
  certificates:
    - certFile: /mnt/ddev-global-cache/traefik/certs/geo.crt
      keyFile: /mnt/ddev-global-cache/traefik/certs/geo.key