I have recently setup a reverse proxy with the nginx addon for my home assistant server. Everything works well with the exception of the local calender integration. For whatever reason it throws an error “Could not retrieve events for calendars: <calander name>” when connecting through the external URL. I also get a failed login attempt but only if I open the calender tab.

Does anyone know why it does this and how to fix it? I would like to use the home assistant calender for my family and acces is while away from home.

  • CondorWonder@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 days ago

    Did you set up the proxy as a trusted forwarder? That means setting use_x_forwarded_for and trusted_proxies in configuration.yaml?

    • kaaskop@feddit.nlOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      Yes, I did. I’ve added the IP address stated in the documentation and also added the localhost IP 127.0.0.1 This didn’t help any though

      • CondorWonder@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        Is the reverse proxy using an add on or did you roll your own? Reason I ask is proxing HA needs special treatment for websockets (wss:// or ws:// scheme). Add ons should do it themselves but I had to do it myself with Apache. I’m not sure if there’s special config needed for nginx too.

        • kaaskop@feddit.nlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          7 days ago

          I’ve only set this up with add-ons. I’ve tried the “nginx home assistant SSL proxy” and the “nginx proxy manager” add-ons and have the problem with both. With the nginx home assistant SSL proxy I don’t seem to be able to set a toggle for web socket support. With the nginx proxy manager I did specifically toggle the web socket support.

          I really appreciate your help by the way :)