BlackPenguins

@BlackPenguins@lemmy.world

This profile is from a federated server and may be incomplete. For a complete list of posts, browse on the original instance.

BlackPenguins ,

Off-site backups that are still local is brilliant.

BlackPenguins , (edited )

Reverse proxy is actually super easy with nginx. I have an nginx server at the front of my server doing the reverse proxy and an Apache server hosting some of those applications being proxied.

Basically 3 main steps:

  • Setup up the DNS with your hoster for each subdomain.

  • Setup your router to port forward for each port.

  • Setup nginx to do the proxy from each subdomain to each port.

DreamHost let's me manage all the records I want. I point them to the same IP as my server:

https://lemmy.world/pictrs/image/ba533f2b-1a6e-421a-bbef-bd39b2d37c98.png

This is my config file:

server {
    listen 80;
    listen [::]:80;

    server_name photos.my_website_domain.net;

    location / {
        proxy_pass http://127.0.0.1:2342;
        include proxy_params;
    }
 }

 server {
    listen 80;
    listen [::]:80;

    server_name media.my_website_domain.net;

    location / {
        proxy_pass http://127.0.0.1:8096;
        include proxy_params;
    }
}

And then I have dockers running on those ports.

root@website:~$ sudo docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED       STATUS       PORTS                                                      NAMES
e18157d11eda   photoprism/photoprism:latest   "/scripts/entrypoint…"   4 weeks ago   Up 4 weeks   0.0.0.0:2342->2342/tcp, :::2342->2342/tcp, 2442-2443/tcp   photoprism-photoprism-1
b44e8a6fbc01   mariadb:11                     "docker-entrypoint.s…"   4 weeks ago   Up 4 weeks   3306/tcp                                                   photoprism-mariadb-1

So if you go to photos.my_website_domain.net that will navigate the user to my_website_domain.net first. My nginx server will kick in and see you want the 'photos' path, and reroute you to basically http://my_website_domain.net:2342. My PhotoPrism server. So you could do http://my_website_domain.net:2342 or http://photos.my_website_domain.net. Either one works. The reverse proxy does the shortcut.

Hope that helps!

BlackPenguins ,

I updated my comment above with some more details now that I'm not on lunch.

BlackPenguins ,

I only use it for reverse proxies. I still find Apache easier for web serving, but terrible for setting up reverse proxies. So I use the advantages of each one.

BlackPenguins ,

I wouldn't say it would never happen. I at least think it might happen and I like to prepare for confrontation.

BlackPenguins ,

Pretty much anything made by Michael Shur and Greg Daniels.

BlackPenguins ,

They're implying you're a troll with no credibility so there's no point in debating.

BlackPenguins ,

Meanwhile I was enthralled with the updates every minute on CNN. I guess it's different when you're on trial.

New York Criminal Defendant Already Being Real Pain In Ass ( www.wonkette.com )

(Trump lawyer Alina Habba — the one who fakes smart — argued on Fox News last night that this is a denial of Trump’s “due process” rights. Needless to say, LOL no. Habba also bellyached that Trump’s lawyers won’t get Passover off, because “Observant Jews have a right to go and pray to who they want and observe...

BlackPenguins ,

Depends on the cooperation of the defendant probably. Since Trump was dragged kicking and screaming I would think no.

BlackPenguins ,

At work I have two monitors. One for input (my IDE for programming) and one for output ( the browser to watch changes for my react app).

At home I bought the 49 in. Samsung and have three monitors. Third is normally the log output.

BlackPenguins ,

And where exactly are you going to evacuate an entire country?

BlackPenguins ,

I can't believe I didn't realize the double rr after sonar and radar is mimicking pirates.

BlackPenguins ,

Showing who how to pirate? I only download legal open source applications with my torrents.

BlackPenguins ,

The irony of killing off their own base by not taking covid seriously to own the libs.

BlackPenguins ,

The Dark Forest - no one wants to alert their presence or attract predators. Though knowing our Earth I think we're stupid enough to do that. Cue the space lasers.

BlackPenguins ,

Remember this is essentially what the dictator of China did to seize power in the 2000s. Ascend the ranks and replace people who didn't agree with him.

BlackPenguins ,

FOX News will be foaming at the mouth about free speech now. It's a catch 22 for NBC

BlackPenguins ,

Why is cancer capitalized when patients are the emphasis. Capitalizing random words. Trump is that you?

BlackPenguins ,

And possibly America's version of silencing a Boeing whistleblower.

BlackPenguins ,

I'm going to need you to get alllll the way off my back about this Trump being a criminal thing.

BlackPenguins ,

Multiple polls had Biden ahead of Trump before this happened too.

BlackPenguins ,

Do we know why the oompa loompa is so orange?

BlackPenguins ,

Biden used these words against him in a political ad. We need more of these: https://youtu.be/czPsdnkb94M

Bring on Dark Brandon!

BlackPenguins ,

That's why I'm designing a recipe app where I can keep notes etc for everything I make.

BlackPenguins ,

Excuse me sir, I don't have any shit. Because of my bidet.

BlackPenguins ,

His shows are entertaining as hell. ToC just started back up.

BlackPenguins ,

Brother. Always Brother. I got a cheap one with toner. Haven't changed ink yet in 3 years.

BlackPenguins ,

Probably because it couldn't find a picture with Trump smiling and happy.

BlackPenguins ,

Worcestershire - so no one can pronounce my name.

BlackPenguins ,

Exercise equipment? Windmills? A safe for documents?

BlackPenguins ,

Don't they review their advertisers? No way they'd let that through for any money.

BlackPenguins ,

Where does Biden exist in any part of this process? He forced Trump to defame her? He paid for Carroll's legal team? My God, this is the new Thanks Obama.

BlackPenguins ,

Let's hope. I want to see how high this can go.

TO THE MOON! 🚀🚀🚀

BlackPenguins ,

I rarely click on them. If I like what I see I'll manually Google the product since I don't trust the link they give me.

BlackPenguins ,

"We've streamlined the process. To say no just take the sandwich from the child's mouth. Yeah he's a hungry one. Try stepping on his face."

BlackPenguins ,

MAGA already tried to cancel her and failed when she encouraged people to vote. Imagine if she actually endorsed a candidate.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines