• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: February 17th, 2024

help-circle

  • harsh3466@lemmy.mltoMemes@lemmy.mlDear USians
    link
    fedilink
    arrow-up
    10
    arrow-down
    2
    ·
    24 hours ago

    The sentiment isn’t dumb. It’s true. The Democrats don’t give a fuck about us plebs. I voted for Harris and absolutely will vote for/choose the lesser evil as long as I’m still able. Doing so does not mean the Dems give any fucks about me.

    Remember when Bernie had real momentum behind him and the Dems sabotaged him because Hillary was determined to have her run at the presidency? If the Democratic party gave a fuck about the voting public they’d have gone whole hog behind Bernie.

    It the Dems cared about normies, they’d be doing more than performative filibusters that accomplish nothing. If the Democratic party cared they’d be throwing up every fucking roadblock they could to actually try and stop that motherfucker Trump and his fucking cronies.

    Are the Dems a better option than the Republicans? Yes. Do the Dems care about us? No. They’re just the less shitty choice.








  • I’ve been learning bash and working on scripts to automate stuff in my homelab. It’s been a lot of fun. I’m currently working on a script that will rename the movies and TV shows I rip from my DVD collection.

    The script queries the tmdb api, presents me with a mwnu of matches if there’s multiple matches, renames the media files according to jellyfin spec, and then places them in the proper folders to be indexed by Jellyfin and Kodi.





  • So, this took way longer than I thought it would, mostly because I needed the time to sit down and actually type this up.

    Full credit, I followed the instructions in this video from Wolfgang’s Channel

    Prerequisites (this is based on my setup, the api key requirement will vary based on your domain registrar/service):

    • Docker & Docker Compose
    • NGINX Proxy Manager running via Docker
    • A registered domain to use for your lan
    • An API key from your domain registrar/service

    I’m running NGINX Proxy Manager, using this docker-compose.yml, which I got straight from the NGINX Proxy manager website.

    version: '3.8'
    services:
      app:
        image: 'jc21/nginx-proxy-manager:latest'
        restart: unless-stopped
        ports:
          - '80:80'
          - '81:81'
          - '443:443'
        volumes:
          - ./data:/data
          - ./letsencrypt:/etc/letsencrypt
    

    I’ve got my domain managed by Cloudflare (yes, I know they’re evil, what company isn’t?), so these instructions will show setup using that, but NGINX Proxy Manager supports a whole bunch of domain services for the HTTP-01 challenge.

    With all prerequisites in place, here are the steps:

    • Log in to your NGINX Proxy Mananger (you can access the service and login at port 81 of the machine hosting it)
    • In the top menu, click the SSL Certificates tab
    • Click the Add SSL Certificate button
    • Choose Let’s Encrypt for the certificate type
    • In the Add Let’s Encrypt Certificate dialog, input the following
      • Domain Names: Input the domain root, as well as a wildcard subdomain. You’re entering both domains into the same field. After entering each domain, press the enter/return key on your keyboard to confirm the domain. For example, if you domain is abcde.com, input:
    • Email Address for Let’s Encrypt: Any valid email address you’d like to use
    • Toggle the Use a DNS Challenge option on (when you toggle this on, a new set of options will appear)
      • DNS Provider: Choose yours. I chose Cloudflare
      • Credentials File Content: Delete the prepopulated dummy api key and paste in your actual api key
    • Propagation Seconds: I put in 120 to give it two minutes. You can try leaving it blank, but if the DNS records haven’t propagated, you may get an error (I did when I tried leaving it blank during setup).
    • Toggle on the I Agree to the Let’s Encrypt Terms of Service option - Click Save

    Once you get a success message, you can start creating proxies with NGINX Proxy Manager for your internal domain. To do that you will need the ip address and port you are forwarding the domain to for your lan service. If you are using Docker containers, you’ll need the Docker ip, which you can get from the command line with:

    ip addr show | grep docker0

    You should get an ip address like 172.17.0.1

    Otherwise you’ll just need the ip address of the machine you’re running the service on.

    To set up a proxy redirect:

    • In NGINX Proxy Manager click the Hosts tab/button and then choose Proxy Hosts.
    • Towards the upper right click the Add Proxy Host button
    • In the New Proxy Host dialog box, input the following:
      • Domain Names: input the domain address (subdomain or tld) you wish to use for the service. For example. homepage.abcde.com, then press enter to confirm the domain
      • Scheme: leave set to http
      • Forward Hostname/IP: Input either the host machine ip, or the docker ip
      • Forward Port: Input the appropriate port for the service
      • Cache Assets: Toggle on
      • Block Common Exploits: Toggle on
      • Websockets Support: Toggle on if the service needs websockets
      • Click the SSL tab of the New Proxy Host dialog box to set up the ssl certificate
      • In the SSL tab, input the following:
        • Click the None under SSL Certificate and select your local domain + wildcard subdomain certificate
        • Toggle on the Force SSL, HTTP/2 Support, HSTS Enabled, and HSTS Subdomains options
        • Click Save

    Once the save is complete you should be able to input the new domain for you lan services and get a secure connection.*

    *Bear in mind some services require you to specify a valid domain for the service within the config/settings. Double check any services you may be running for this if you plan to use a reverse proxy with them.