• 0 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle


  • Here’s what I have for Pleroma.

    server {
    server_name social.immibis.com; # this is what matches the domain name
    root /var/www/social_html; # empty folder
    location / {
    proxy_pass http://localhost:4000;
    }

    # this block was from the pleroma documentation, I think. Mastodon and Lemmy might have their own recommendations. Upgrade is to enable proxying websockets. and the rest seems generally sensible for proxying.
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection “upgrade”;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    client_max_body_size 16m;
    ignore_invalid_headers off;

    # when you run Certbot it will change this to 443, insert SSL configuration, and set up a redirect on port 80
    listen [::]:80;
    listen 80;
    }








  • @backhdlp @selfhosted What is going to depend on the thing you’re hosting? If you are browsing the web on your main computer, through an ad-blocking proxy on your main computer, obviously it is fine for the proxy to go away when your main computer is off. But if you want to browse the web on your phone through that proxy when your computer is off, it won’t work. If you want your phone to stop using the proxy when your computer is off, that’s going to end up being a pile of duct tape.

    as the name implies pihole is often installed on a Raspberry Pi which is left runnign 24/7. You may consider getting one, even an older model. It’s a perfectly cromulent computer. Note: There are also non-Raspberry Pi’s which might be cheaper - the generic term is “single-board computer” or SBC.