101010's recent activity

  1. Comment on Fortnightly Programming Q&A Thread in ~comp

    101010
    Link Parent
    Nginx-proxy-manager listens on ports 80 for http and 443 for https in addition to hosting it's http web interface on 81. PiHole was hogging port 80 all for itself in host network mode, so I...

    Nginx-proxy-manager listens on ports 80 for http and 443 for https in addition to hosting it's http web interface on 81. PiHole was hogging port 80 all for itself in host network mode, so I couldn't even create the nginx-proxy-manager container with the conflict.

    PiHole listens on port 53 to handle DNS requests on my LAN and hosts an http admin interface on port 80 by default, which I moved it to 8081. DNS requests come in on port 67 from the host network through the dhcphelper relay.

    All of my containers are connected to the same bridge network, so I think they should all be visible to each other just fine. But I should try running cloudflared directly in Raspbian to see if the docker network setup is my issue.

  2. Comment on Fortnightly Programming Q&A Thread in ~comp

    101010
    Link
    I've been trying off and on for a couple weeks to host a simple static website from my Raspberry Pi. I'm almost there, but the best I can do is a 502 error. For my professional development, and to...

    I've been trying off and on for a couple weeks to host a simple static website from my Raspberry Pi. I'm almost there, but the best I can do is a 502 error. For my professional development, and to keep things portable when I eventually upgrade hardware, I'm going all-in on Docker Compose. I have a handful of containers up and running and accessible locally. The part I'm having trouble with is pointing my domain to the right place.

    Here are all the containers I have at the moment:

    • PiHole, the whole reason I bought the Raspberry Pi in the first place. I originally had it running in host network mode, but that mode doesn't support port remapping, so in order to free up port 80, I switched back over to bridge mode and mapped the admin interface to port 8081. Also has some local DNS records all pointing to the Raspberry Pi's static IP.
    • In order for the PiHole to keep handling DHCP for my network, I'm running dhcphelper to serve as a DHCP relay to the bridge network.
    • nginx-proxy-manager that points PiHole's local DNS to all the right ports. For example, npm.lan points to the nginx-proxy-manager dashboard at my Pi's IP address and port 81, pi.hole goes to the Pi's IP and port 8081.
    • My website is hosted by an httpd container on port 8082. For testing purposes, this one has a local DNS record for homepage.lan and a proxy host in NPM to point that to the right port. Works just fine locally.
    • And finally, I'm running cloudflared in a container in an attempt to point my domain name to the httpd container through a Cloudflare tunnel. I want to use a tunnel for a few reasons. There's no way I'm gonna pay for a business line just to get a static IP, and my router only has support for a few DDNS services, all of which cost money. I also want to avoid publicly broadcasting my house's IP address and opening ports on my router.

    Because everything works locally, I'm pretty sure my problem is somewhere between the tunnel setup, the CNAME records in Cloudflare, and the Cloudflare SSL cert in NPM. Like I said before, the closest I can get is a 502 error. I've looked at several guides, but I'm having trouble finding a guide specific to this Docker-ized configuration, and I'm struggling to cross-reference things to put the pieces together.

    Has anyone out there hosted something in docker through a tunnel? What am I missing here?

    1 vote
  3. Comment on Which audio drama podcasts do you recommend? in ~hobbies

    101010
    (edited )
    Link
    I was prepared to answer with a huge list, but you already mentioned most of my favorites in your post. I'll just suggest a few more. Midnight Burger - A light-hearted sci-fi show about a...

    I was prepared to answer with a huge list, but you already mentioned most of my favorites in your post. I'll just suggest a few more.

    • Midnight Burger - A light-hearted sci-fi show about a mysterious diner that travels through time, space, and the multiverse.
    • The Program - It's about the world governed by an AI called The Program. This one isn't an audio drama per-se, but an anthology series. No reoccurring characters really, each episode is a different window into this world or story about The Program's development and rise to power.
    • Ars Paradoxica - some of the best and most internally consistent time travel storytelling I've ever heard
    • Within the Wires - About an alternate past where nation-states and family units are dissolved. The story is told through various different found audio formats, for example season 1 is presented as a series of relaxation tapes with hidden messages inside, and season 2 is an audio tour of an art museum.
    7 votes
  4. Comment on What do you think is the most interesting/weird music genre? in ~music

    101010
    Link Parent
    I went on a huge psychobilly kick a few years ago! Such an fascinating mix of rockabilly and punk. There's a pulp horror element to the aesthetic too. It's like someone gave Elvis's corpse a...
    • Exemplary

    I went on a huge psychobilly kick a few years ago! Such an fascinating mix of rockabilly and punk. There's a pulp horror element to the aesthetic too. It's like someone gave Elvis's corpse a mohawk. It's like if Buddy Holly's backing band was The Ramones. My favorite psychobilly bands are the ones that stick closer to the old-school rockabilly song forms and chord progressions, but with the speed and aggression of punk. Other bands lean more into the punk side of things, but keep the upright bass and pompadours.

    If anyone's interested, here are a few songs to give you an idea:

    2 votes
  5. Comment on What programming/technical projects have you been working on? in ~comp

    101010
    Link Parent
    Well since my last comment, I've made what I think might be progress. Rather than mapping ports, I went ahead and set the network_mode to host. Now I can access the web interface in 3 ways. I can...

    Well since my last comment, I've made what I think might be progress. Rather than mapping ports, I went ahead and set the network_mode to host. Now I can access the web interface in 3 ways. I can go to pi.hole, the static IP of my Raspberry Pi, or the IP address of the container. From the web interface, I could enable DHCP and I could see certs being issued.

    Here's my compose file now:

    version: "3"
    services:
      pihole:
        container_name: pihole
        image: pihole/pihole:latest
        network_mode: host
        environment:
          TZ: 'America/NewYork'
          WEBPASSWORD: <REDACTED>
          VIRTUAL_HOST: pi.hole
        volumes:
          - './etc-pihole:/etc/pihole'
          - './etc-dnsmasq.d:/etc/dnsmasq.d'
        cap_add:
          - NET_ADMIN
        restart: unless-stopped
    

    The new problem is, when I set my router's DNS to the Pi's static IP, a bunch of domains get ERR_ADDRESS_UNREACHABLE while others work just fine. Google works, but not DuckDuckGo. Tildes works, but not Reddit. RealVNC's website works, but RealVNC Server says it's temporarily disconnected.

    Here's what I had in dhcpcd.conf, because I think that might be my problem:

    interface eth0
    static ip_address=192.168.0.2/24
    static gateway=192.168.0.1
    static domain_name_servers=192.168.0.2
    

    So, defeated, I killed the Pi Hole container, and reverted back to Google's DNS and DHCP on my router for now, so I'm not disrupting the internet in my house while I'm using it for work. But the weirdest part is that I'm still having the exact same ERR_ADDRESS_UNREACHABLE issue on my Raspberry Pi, even after changing the domain_name_servers in dhcpcd.conf back to my router's IP or even to Google's DNS directly! One step forward, two steps back.

  6. Comment on What programming/technical projects have you been working on? in ~comp

    101010
    Link
    I'm about to start a new web development job, despite the fact that I haven't done any web stuff before. So in order to make it easier for me to experiment in that space, I bought a domain and...

    I'm about to start a new web development job, despite the fact that I haven't done any web stuff before. So in order to make it easier for me to experiment in that space, I bought a domain and I've been trying to set up some basic self-hosting infrastructure for myself.

    I have a Raspberry Pi 4 that's been running Pi Hole for ad blocking and DHCP for a while now. I decided to wipe my SD card and set up Pi Hole inside a Docker container instead. I thought that was supposed to make setup easier, but I've been tearing my hair out trying to get it to work all day.

    I'm pretty sure I have Docker set up correctly. I can sudo docker run hello-world or sudo docker run ubuntu bash for example. But I think I'm missing something in my docker compose file for Pi Hole, I can't get to the web interface or find it on my network.

    When I eventually get that set up, I'm planning on figuring out NGINX so I can host some other services on my network from different docker containers. Ansible is on my to-do list too.

    Maybe at some point I'll actually try making a website like I was originally planning on doing.

    1 vote