Rookie Lemmy admin here, trying to get an instance off the ground. I've followed the docker install instructions located here:
https://join-lemmy.org/docs/administration/install_docker.html
Everything starts correctly, no errors in any logs, I can access lemmy-ui at the correct domain as expected. But when I try to login nothing happens. If I check the lemmy logs I see the following error:
WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: Origin is not allowed to make this request
I'm pulling my container from dessalines/lemmy:latest, which means I'm running v0.18 (I'm installing on a fresh install of Ubuntu 22.04 LTS, if that matters). I see from the Lemmy change log there have been several changes related to CORS, including the addition of a LEMMY_CORS_ORIGIN environment variable. I thought maybe the example configs included in the installation documentation were out of date, so I added that environment variable to my docker compose file and restarted lemmy. No change in behaviour. I've tried setting that ENV to every combination of host/port I can think of with no success. I also enabled debug level logging on the lemmy docker, hoping that the log message would tell me the explicit origin that it was seeing so I'd know what to set the ENV to, but no luck.
Can anyone provide me with some tips? What am I supposed to set the LEMMY_CORS_ORIGIN variable to? Has anyone else encountered this error?
I don't think you need to stress too much about weatherproofing your DIY enclosure. You can get "weatherproof" boxes off Amazon for ~$20, and as long as you mount it somewhere out of direct exposure (e.g. near your pool controller under an eave) you'll be fine. For example, I built an irrigation control valve for an unrelated project into one of these boxes and mounted it to the back of my garden shed. It even comes with 2 cable glands. https://a.co/d/j7hkyDX
Then you can just run a cable over to a section of your pool's PVC piping (probably just after your pump), drill a small 1/4" hole and stick a thermistor into the flow. Something like this is designed for exactly this purpose: https://a.co/d/994WUHf It's even got an o-ring to seal the hole, you just hold it onto the pipe with a cable tie. Whether you get a Pentair-branded temp sensor or not, they're mostly all 10kOhm thermistors, which you can easily add to ESPHome as an NTC sensor: https://esphome.io/components/sensor/ntc.html
Hope that helps. I'm also a big fan of DIY :)