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;
}
@TrinityTek vhosts also refers to the general concept. In nginx you configure multiple servers with the same listening addresses but different names.
@TrinityTek@lemmy.world @selfhosted@lemmy.world Everything on your server has a URL, like https://your.server.name.example/c/your_community_name. Unless you want all the official public URLs to everything on your server to have a port number in them (https://your.server.name.example:1234/TrinityTek) you probably want to figure this out <i>before</i> deploying anything.
I suggest using vhosts. You can for example run Lemmy on port 8001 and Mastodon on port 8002 (both should be bound to 127.0.0.1 without HTTPS). Then you get two domain names pointing at the same server. Then you install nginx on your server, as your actual web server, and you configure it so requests for lemmy.trinitytek.com gets proxied to lemmy and mastodon.trinitytek.com gets proxied to mastodon
@online @selfhosted I have to say this is the first time I’ve ever seen anyone ask this
@kratoz29 @selfhosted You cannot go much cheaper from $6 per month… there’s just not that far down to go. You can save maybe another $3 per month. There’s a $3.50/mo plan on Vultr. I have an OVHcloud VPS that cost $100 for 2 years but that was some special promotional deal.
I also stumbled across this one that is $3.40/month (but the $5/month is a much better deal, with 4GB of RAM) but I don’t know anything about this hosting provider so it could just as well be a scam: https://bill.alexhost.com/cart/moldova/
@Amanduh @TrinityTek you can’t just make up any word you like for the last part
@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.
@r00ty @danQuix0te message received at social.immibis.com (??why??)
edit: because it’s in the selfhosted community, which I follow
@republicofRAD @jaackf You can leave your own PC on, you can buy new hardware, or you can rent a server. Any of the above is a valid way to run your own services.
A low-end VPS (virtual private server) costs around $5 a month and can run plenty of stuff as long as it’s not particularly heavy (no video hosting). Running a website on a VPS is a very common first entry to self-hosting, especially if you don’t have stable internet at home.
@starstough @LoafyLemon @alfagun74 this naming thing reminds me again of DeepCreamPy, which was a version of Deep Dream (written in Python) that fills in gaps in hentai
@RomTy @ThePenguinDev if Meta can shut it down, it will. Everything good is illegal.