http: routers: parastoo-dashboard-http: entryPoints: - http service: parastoo-dashboard-service rule: Host(`parastoo.zebellkhan.com`) middlewares: - redirect-to-https@file parastoo-dashboard-https: entryPoints: - https service: parastoo-dashboard-service rule: Host(`parastoo.zebellkhan.com`) middlewares: - gzip@file tls: certresolver: letsencrypt services: parastoo-dashboard-service: loadBalancer: servers: - url: 'http://parastoo-dashboard-nginx:80'