• 0 posts
  • 16 comments
Joined 3 years ago
Cake day: June 16th, 2023
  • I’m almost going full circle now, I’m buying a camera and a Music player to use as separate devices from my phone. Not only smartphones are getting expensive as hell, but the usability is actually getting worse IMHO.

    And why is it so fucking awful to setup an automated pipeline to deploy smartphone apps (Android and iOS)?

  • Oh yeah. I would love to replace Python with Nim. The fact that you can generate self contained executables without effort is a huge selling point for me. And dependency management with Python is just awful.

  • Yep, definitely something wrong with the webserver 😅 Can you try this configuration?

    https://nextcloud.domain.com {
            reverse_proxy 192.168.1.182:443 {
                    header_up Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
                    header_up X-Forwarded-Proto {scheme}
                    header_up X-Forwarded-For {remote}
                    header_up X-Real-IP {remote}
            }
    }
    

    You said that “originally, the Nextcloud server handled HTTPS with Let’s Encrypt at domain.com” and now you are redirecting to 192.168.1.182 on port 443. Is this Nextcloud server still serving HTTPS with Let’s Encrypt for domain.com?

    I’m asking because if you are using Caddy in front of that HTTPS webserver as a reverse-proxy, you will need to override the Host header with the configured upstream address. Here’s the documentation. I think it would be something like this (?):

    https://nextcloud.domain.com {
            reverse_proxy domain.com:443 {
                    header_up Host {upstream_hostport}
                    header_up Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
                    header_up X-Forwarded-Proto {scheme}
                    header_up X-Forwarded-For {remote}
                    header_up X-Real-IP {remote}
            }
    }
    
  • Man, infuriating! I had a problem that was being asked on stackoverflow but with no solution. Later, I found the solution reading some obscure parts of the docs from certain vendor. I was gonna post it there so everyone that had the same problem could find it and solve it. But I don’t have enough reputation :/