# Proxmox behind Traefik

**URL:** <https://community.traefik.io/t/proxmox-behind-traefik/9338>\
**Category:** Traefik v2\
**Tags:** file\
**Created:** [January 16, 2021, 2:39pm UTC](https://community.traefik.io/t/proxmox-behind-traefik/9338 "2021-01-16T14:39:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![candoom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/candoom/32/3212_2.png) [@candoom](https://community.traefik.io/u/candoom)\
**Post date:** [January 20, 2021, 6:01pm UTC](https://community.traefik.io/t/proxmox-behind-traefik/9338/3 "2021-01-20T18:01:27Z")

</div>

Hello @rtribotte,

Thank you very much for your answer. I have adjusted my configuration according to your suggestions. It makes sense what you said. I think it should be right now?

```auto
http:
  routers:
    proxmox-https-router:
      rule: "Host(`proxmox.home.xxxxx.yyy`)"
      service: my-proxmox
      entryPoints:
        - https
      tls:
        certResolver: http
# middlewares:
# - basicAuth

    proxmox-http-router:
      rule: "Host(`proxmox.home.xxxxx.yyy`)"
      service: my-proxmox
      entryPoints:
        - http
      middlewares:
        - redirect
		
	proxmox-spice-router:
      rule: "Host(`proxmox.home.xxxxx.yyy`) && Method(`CONNECT`)"
      service: spice-proxmox
      entryPoints:
        - http
      middlewares:
        - redirect

  services:
    my-proxmox:
      loadBalancer:
        servers:
          - url: https://192.168.1.97:8006
		  
  middlewares:
    https_redirect:
      redirectScheme:
        scheme: https
        permanent: true
tcp:
  services:
	spice-proxmox:
	  loadbalancer:
	    servers:
		  - address: 192.168.1.97:3128

```

---

_[View the full topic](https://community.traefik.io/t/proxmox-behind-traefik/9338)._
