Raspberry Pi versus AWS // How to host your website on the RPi4

  Рет қаралды 1,148,485

Fireship

Fireship

3 жыл бұрын

Learn how to host your website on a Raspberry Pi 4 after your app gets booted from Amazon Web Services (AWS) fireship.io/lessons/host-webs...
#aws #rpi #tech
Raspberry Pi www.raspberrypi.org/
AWS & Parler www.buzzfeednews.com/article/...
Install the quiz app 🤓
iOS itunes.apple.com/us/app/fires...
Android play.google.com/store/apps/de...
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
My VS Code Theme
- Atom One Dark
- vscode-icons
- Fira Code Font

Пікірлер: 1 800
@adrientrahan
@adrientrahan 3 жыл бұрын
Please make an episode 2: How to scale with a raspberry pi :)
@damiann4734
@damiann4734 3 жыл бұрын
@@hirschheisstdermann he meant scale up automatically to infinity based on certain metrics within a few minutes and scale down when idle to save on power.
@nonsudunk
@nonsudunk 3 жыл бұрын
How to scale a thumb-size raspberry pi to 3-floor server
@brentgreeff1115
@brentgreeff1115 3 жыл бұрын
Kubernetes is the way, but you would need the Pies. - I am thinking about doing this myself because I have a kube cluster burning money on GCP right now. - but I am not sure about ARM. - I might start with 2 second-hand mini 86 machines. - I have a feeling I am going to not be able to install something, - some library or service - plus I develop on Mac - if I get a bug in production I dont want to be wondering if its an ARM / 86 difference. - On the other hand - If I had an ARM Macbook, - that would be different.
@IBareBear_
@IBareBear_ 3 жыл бұрын
Automaticly pls - it should order the extra hw automatically and call someone to add it to the system
@anthonyoleinik6472
@anthonyoleinik6472 3 жыл бұрын
Episode 2 is him walking to Microcenter to buy a second rPi
@theweirdsquid
@theweirdsquid 2 жыл бұрын
I personally use a Raspberry Pi 4 with this exact setup to run my development servers that don't need to scale, and that I don't want to pay for yet. The only difference is that I have a reverse proxy set up so that I can run many websites at once off of it, but the Raspberry Pi 4 is honestly such an underrated little computer. Great for risk-free development.
@1Naif
@1Naif 2 жыл бұрын
Is it capable for WebSocket? I mean can it handle a small online game with 150 users?
@hopelessdecoy
@hopelessdecoy 2 жыл бұрын
@@1Naif there's a lot of variables besides users that determine if it could but theoretically yes. Probably could. But not very well unless it's a tic tac toe or other simple game server. Real time interaction game play? no, just no.
@sivaganesh2899
@sivaganesh2899 Жыл бұрын
@@1Naif Hello. I am working on aproject which involves controlling hardware components let's say leds connected to raspberry pi GPIO pins and i want host a webpage on raspberry pi to control the leds from a browser that's not a part of local network. Can I actually achieve this with web socket server. If not please tell any other ways to do this. Please do reply..This is for my college project.
@jsmythib
@jsmythib Жыл бұрын
@@1Naif Ill be the one that says 'of course'. You could build a super efficient bitwise framework..The pi would eat it up :)
@galleon8129
@galleon8129 7 ай бұрын
So how do you set up one, do you have links to comprehensive tutorials?
@turnerboyish
@turnerboyish 3 жыл бұрын
This video broke down about 4 hours of research into 8 minutes and I love it. Could you do one about converting old computers to Ubuntu Desktop/Server and using Apache2? Love this. Thank you!
@keyboardwarrior5696
@keyboardwarrior5696 3 жыл бұрын
Hosting out of your own local network is pretty nice for home automation, assuming you secure it properly. You can build and host a web interface that manages devices on your LAN. Super fun stuff. :)
@Latigo
@Latigo Жыл бұрын
Publish a video about this.
@ameeraqel1090
@ameeraqel1090 Жыл бұрын
I'd buy a course on this.
@Vegetoyesh
@Vegetoyesh 7 ай бұрын
​ @ameeraqel1090 And what would you be willing to pay for such a course. I have this very expertise. :)
@WolfrostWasTaken
@WolfrostWasTaken 3 жыл бұрын
Self-hosting is always the most based way to deploy your stuff. Also extra tip: dockerize it right away! (I mean do not install nginx directly on the machine but use docker-compose to launch and orchestrate the nodejs container and the nginx container)
@ArmandSterbend
@ArmandSterbend 2 жыл бұрын
Self-hosting is a perfect way to lose a lot of time and money, and because time is money is even worst. I'm being paid to do the best with the technologies, time and money we have, not to re-invent the wheel.
@WolfrostWasTaken
@WolfrostWasTaken 2 жыл бұрын
@@ArmandSterbend cope
@no_one6749
@no_one6749 2 жыл бұрын
What
@Yaxqb
@Yaxqb 2 жыл бұрын
I'd say no to containerizing if you're a single dev. It's too much work for nothing. If you're a company, then it's fine to containerize
@finbarr3363
@finbarr3363 2 жыл бұрын
If you want to learn new things, this is how it's done.
@DarkH4X0
@DarkH4X0 3 жыл бұрын
All fun and games until someone start dossing literally your home connection trying to bring down your stupid to-do list webapp hosted on a Raspberry Pi
@TheRanguna
@TheRanguna 3 жыл бұрын
Man chill..
@domenicoespinosa2677
@domenicoespinosa2677 3 жыл бұрын
Hahaha
@nathanherder1414
@nathanherder1414 3 жыл бұрын
Use fail2ban. Problem solved.
@LaZZeYT
@LaZZeYT 3 жыл бұрын
Just use cloudflare.
@ThePapanoob
@ThePapanoob 3 жыл бұрын
@@nathanherder1414 fail2ban doesnt help against ddos attacks
@2mvX
@2mvX Жыл бұрын
Those videos are amazing! I am senior SW dev but sometimes I feel like a trainee when watching this. IT is an infinite topic where innovations pops out on daily routine. Thanks for your work
@tonipejic2645
@tonipejic2645 2 жыл бұрын
One more thing to add is the local IP of the raspberry pi is not static by default, it can get reassigned to another device if your raspberry pi goes offline or the router is restarted. You can mitigate this by assigning a static IP to your raspberry pi on your router based on the raspberry pi's MAC address
@gourangasatapathy2565
@gourangasatapathy2565 4 күн бұрын
You can use ngrok/cloudflare tunnel though
@dhruvikdonga4569
@dhruvikdonga4569 3 жыл бұрын
Kids :- build Twitter from scratch Men:- build zoom from scratch Legends :-build AWS from scratch 8:14
@Gameplayer55055
@Gameplayer55055 3 жыл бұрын
Zoom actually was built from scratch. Annoying sound quality and awful security
@player-8740
@player-8740 3 жыл бұрын
@@Gameplayer55055 more like using scratch
@pulkitsharma9291
@pulkitsharma9291 3 жыл бұрын
I know Kids and men .... Hahahahaha
@Jimmy_Jones
@Jimmy_Jones 3 жыл бұрын
Damn. I didn't know Scratch was that powerful. Lol
@Gameplayer55055
@Gameplayer55055 3 жыл бұрын
@@player-8740 more like using brainfuck
@ben9583_
@ben9583_ 3 жыл бұрын
Host a website on your own network to avoid the big monopolies of the internet! **ISP blocks outgoing port 80 and 443 traffic**
@pm79080
@pm79080 3 жыл бұрын
VPN to an ISP which won't or use Tor onion services.
@FixingGunsInAir
@FixingGunsInAir 3 жыл бұрын
Buy a VPS on a provider what is far from US jurisdiction Wireguard to it (Even my home router has a Wireguard plugin :P) Point DNS A record to VPS Some routing and forwarding ??? PROFIT
@devluz
@devluz 3 жыл бұрын
Man that is fucked up. He should actually make a video about IP4 / TCP / UDP and IP6. I bet most services online could be entirely descentralized without the need for so many servers & the cloud if ISP's would do shit like this.
@unicodefox
@unicodefox 3 жыл бұрын
Outgoing? You mean you can't connect to any website at all?
@nicolascossio5961
@nicolascossio5961 3 жыл бұрын
@@unicodefox I think it means that his website/server that is being forwarded from the Pi to the internet through his router using that public ip dynamic address gets blocked by his ISP
@regul4rjohn
@regul4rjohn 3 жыл бұрын
Good kick-off. As you mentioned on the beginning, I’d be weary of the security aspect. Opening ports and leaving nginx config on default with no hardenining on the OS is not the best idea in general. A good part two would be adding HTTPS and a domain name to the mix (with google domains or whatever) and securing things a bit on the web server. Docker/k8s are also a hot topic, if instead of installing nginx directly on the host you add two different pods, one for the webpage static assets, and one for a backend API that serves the count number you’d end up with a setup that’s closer to real-world scenarios. Just my 2c, thanks for the fun content!
@patthetech
@patthetech 3 жыл бұрын
What AWS did to parler is *exactly* why I have never liked "the cloud". There is no "cloud", just someone else's computer.
@andrewbasore3560
@andrewbasore3560 3 жыл бұрын
The term makes it sound like some celestial heavenly place that delivers 1's and 0's
@kaitsurugi3280
@kaitsurugi3280 3 жыл бұрын
"There is no "cloud" Just someone else's computer." Wow, that was a perfect way of putting it!
@patthetech
@patthetech 3 жыл бұрын
@@kaitsurugi3280 I wish I could take credit for it but I saw it on a sticker years ago lol
@freshhb100
@freshhb100 3 жыл бұрын
Of all the business that run in the cloud, across the whole world, you have list only 1 example. There are many reason to not like the cloud but what you mention here, isn't a strong one.
@patthetech
@patthetech 3 жыл бұрын
@@freshhb100 it is the ultimate example.
@muhammadsami479
@muhammadsami479 3 жыл бұрын
Solid design principles in 100 seconds 🤩
@hagenlens1403
@hagenlens1403 3 жыл бұрын
Yes I would love that
@adam-bt5xo
@adam-bt5xo 3 жыл бұрын
Yes, please! Could it be a longer episode? The longer, the better!
@MarioRamosMontesinos
@MarioRamosMontesinos 3 жыл бұрын
Please
@magne6049
@magne6049 3 жыл бұрын
with examples in JS!
@igorswies5913
@igorswies5913 3 жыл бұрын
you don't need solid if you don't use classes
@rishabhanand4270
@rishabhanand4270 3 жыл бұрын
ddos attackers: it's free real estate
@prasadbroo
@prasadbroo 3 жыл бұрын
Cloudflare joined the chat
@_MPP_
@_MPP_ 3 жыл бұрын
Just install and configure fail2ban, problem solved.
@_MPP_
@_MPP_ 3 жыл бұрын
@@Sevenhens you can use it for any port you like. I'm running a couple of webapps on my Pi and fail2ban has been doing great job at banning hammering attempts. Setup jails and banaction = iptables-multiport and it's pretty much idiot-proof.
@Sevenhens
@Sevenhens 3 жыл бұрын
@@_MPP_ A modern DDOS (layer 7 attack) is nothing more than an http(s) request from millions to billions of zombie computers. It'll absolutely cripple your network, and you'll have no way of knowing what's a legit request or not! EDIT: It seems in the past DDoses were done at lower layers and they CAN be mitigated somewhat using what you described. But I still stand that in 2021, modern DDoses can still cripple a specific website and the only solution is having a gigantic enough bandwidth pipe to take the hit.
@Sevenhens
@Sevenhens 3 жыл бұрын
@@_MPP_ Btw that's a good setup for network security, all im saying is that a DDos flood is impossible to mitigate since those requests look legitimate. You can ban russian and chinese ips, but with hacked amazon and Google IOTs in the US and Europe, it's now impossible to mitigate against zombie DDos attacks.
@aritrachatterjee8057
@aritrachatterjee8057 Жыл бұрын
You have to maintain the room temperature as well. I used to host jenkins, application on rasp for interview purpose but rasp was damaged 8 months later due to heat issues. Remember it will be on 24×7, so need to maintain the temperature.
@mohdfayaq3037
@mohdfayaq3037 3 жыл бұрын
Actually I have tried this one with my pi but didn't knew there's a service which can take your dynamic ip mapping. Very informative kudos 👍🏻
@joshblf
@joshblf 3 жыл бұрын
This is the kind of creativity we need in the world right now.
@ChumX100
@ChumX100 3 жыл бұрын
This was hilarious, sad and educational, all at the same time.
@thecashewtrader3328
@thecashewtrader3328 2 жыл бұрын
Yes 😞
@CowlandGameStudios
@CowlandGameStudios 2 жыл бұрын
+1!!!
@Raspikabekk
@Raspikabekk 3 жыл бұрын
Great alternatives for Dynamic Ips + a domain is to use a service that check & update (if necessary) the IP in the DNS config of the domain. I'm running a docker container to update that in Cloudflare. I think Duck DNS is another alternative as well, there are some Docker images available for that as well.
@lennonmclean
@lennonmclean 2 жыл бұрын
That’s exactly what he did
@gracelandtoo6240
@gracelandtoo6240 7 ай бұрын
And that's why you don't comment before finishing the video.
@erickbahamondes
@erickbahamondes 2 жыл бұрын
I made this so many times that it was like showing my computer haha. Glad this info is available for everyone, for the old school people we had to read lots an lots of pages separately to get this working as you are. thank you very much
@Sp00mster
@Sp00mster 3 жыл бұрын
I love how you talk about politics with out 'talking politics'. This is my goal in day to day conversation.
@CassiusEvon
@CassiusEvon 3 жыл бұрын
Amen! Finally a good tutorial about this very topic! Had my RP4 sitting on the shelf for months now not being able to get it to work. Thank You!
@haziqsembilanlima
@haziqsembilanlima 3 жыл бұрын
I've been thinking to do this, but apart from downtime, do you have a suggestion on how to fortify our deployment if we are going to deploy it on home network?
@xDELTAGIx
@xDELTAGIx 3 жыл бұрын
im actually going with this approach for a website I'm building, we have to build out server infrastructure using hardware we buy and are putting in datacenters in Chicago, San Fran and New York locations for now. Very similar to your project.
@RobertWildling
@RobertWildling 3 жыл бұрын
Very, very cool! Would be great if you could make a whole series about that. I'd even buy it, if it were a course!!
@danpatiu4017
@danpatiu4017 3 жыл бұрын
Cant wait for the next upload 'Scaling up the Raspberry PI bong cloud' it's gonna be a instant hit.
@HyperspaceQ
@HyperspaceQ 3 жыл бұрын
I really enjoyed your Freedom theme running in the 'background'!
@elliot6758
@elliot6758 2 жыл бұрын
I did it! Thank you for this, it'll surely be useful in the future for more complex projects
@franmaric
@franmaric 3 жыл бұрын
Please expand this to a bigger scale and build an app with it :) Who wants to see that?
@TheNewton
@TheNewton 3 жыл бұрын
I'd want to see the migration process and it's pains along with the monetary tradeoff happening
@Ma1ne2
@Ma1ne2 3 жыл бұрын
This was awesome! Exactly what I was looking for, I wanted to start hosting a forum for the faculty of my university. This was so informative, specially since I'm new to nginx. I would be curious to know, how to distribute the load with that onto multiple raspberry pies. Would enjoy a follow up video on that very much!
@MaximeTrichard
@MaximeTrichard 3 жыл бұрын
This was hands down the most entertaining episode you did ! Kudos for all the jokes without taking any political stance, I hope more people will follow you example, because this is way too fun to not be done !
@tntg5
@tntg5 3 жыл бұрын
Between AWS and making your own service, there is a lot of room for other solutions ! Traditional hosting services also work nicely !
@gaius100bc
@gaius100bc 2 жыл бұрын
1x vCPU and 4GB RAM VPS container in some data centre, with static IP by default, 100Gbit connection to the outside world, pre-installed with some full Linux stack, with 99.98% uptime, for $5 a month - is a very viable alternative to a raspberry pi in a shoe box under the bed.
@defy933
@defy933 Жыл бұрын
@@gaius100bc 1x vCPU and 4GB RAM VPS for $5 a month? freaking where?
@thejonte
@thejonte 6 ай бұрын
Are you french?
@nicolasneumeier7690
@nicolasneumeier7690 3 жыл бұрын
Historical moment: Swearing on Fireship (even if it was censored) xd
@basil6686
@basil6686 3 жыл бұрын
it's happened before.
@Zonai_Guy
@Zonai_Guy 3 жыл бұрын
it happened before in the electron vid I think
@junesuprise
@junesuprise 3 жыл бұрын
Situation with aws and parler well justfies that
@juliansoto2651
@juliansoto2651 3 жыл бұрын
Censorship could make any cryptoanarchist really mad
@josephsagotti8786
@josephsagotti8786 2 жыл бұрын
Makes me like Fireship even more.
@josealvaradotorre6870
@josealvaradotorre6870 3 жыл бұрын
"just in case a natural disaster destroys the raspberry pi like a volcano or peaceful protestors" ROFL greetings from Seattle
@cookingandjava7574
@cookingandjava7574 3 жыл бұрын
the capitol building is in seattle?
@chihchang1139
@chihchang1139 3 жыл бұрын
@@cookingandjava7574 he's talking about capital hill in Seattle where there was peaceful protesting with instances of violence like when a 15 year old white kid drove through with guns trying to "kill some black guys", and then he shot a couple people before he got shot himself. White supremacists like to use this example to say that seattle protests were violent because most people don't know what actually happened. They just hear people died so therefore violence on both sides.
@DSCuber
@DSCuber 3 жыл бұрын
_Seattle_ : "Allow us to introduce ourselves"
@josealvaradotorre6870
@josealvaradotorre6870 3 жыл бұрын
Sorry, I'm not equivocating the Seattle riots to the attempted coup we just witnessed. It's just funny to reflect that peaceful protesters in 2020 have a bad habit of going off the rails
@chihchang1139
@chihchang1139 3 жыл бұрын
@@josealvaradotorre6870 I think that your comment does create the false equivalency that BLM protests also went off the rails like the MAGA insurrections first in Michigan state house and now in the US capitol. BLM protestors at most made property damage and bruised some cops. MAGA protestors came in with guns and killed a cop and helped Nazis plan to kill US officials. It's not the same at all.
@elpidalastname9834
@elpidalastname9834 3 жыл бұрын
I totally agree with you. But my biggest problem is why would I invite 300 people into my home? There’s so many things that could go wrong.
@RAndrewNeal
@RAndrewNeal 3 жыл бұрын
Great for a little home server. But for the throughput that a public server has to deal with, it takes a ton more, including a good firewall.
@salmanabedin1313
@salmanabedin1313 3 жыл бұрын
Your extremely subtle sense of humor is really refreshing.
@brettgregory3622
@brettgregory3622 3 жыл бұрын
Wish this was done like a month ago. Struggled a lot to get this up and running for some reason haha. Would be great to see a follow-up video on security that can be applied for a rasberry pi when hosting your own website.
@DavidJJJ
@DavidJJJ 3 жыл бұрын
So for the cost of the raspberry Pi, you could run your web server for two years on AWS. Then you need to have power, internet, ups, static ip, etc..
@TheEtsgp1
@TheEtsgp1 3 жыл бұрын
Awesome video! Definitely on the same wavelength. Question how would you use raspi for a dev server that could also deploy multiple projects via reverse proxies? There is Nginx reverse proxy manager for raspi I would recommend checking out. Essential a place we're you can build multiple projects like your own dev battle station /cloud repo pi to keep learning and teaching from? Then possibly Extend it with more pi's building a supercluster
@nt44455
@nt44455 3 жыл бұрын
The problem is heating of processor and electricity fluctuations.
@Fireship
@Fireship 3 жыл бұрын
Just one of many problems.
@amalirfan
@amalirfan 3 жыл бұрын
Tip: Use a fan and or heatsink, it helps a lot, may be overclock?, I'm not an expert though.
@atulsinghrajput9932
@atulsinghrajput9932 3 жыл бұрын
@@amalirfan 😆😆
@MarkVonBaldi
@MarkVonBaldi 3 жыл бұрын
A UPS and a better cooler should fix those problems. Maybe also a generator. But If you are really serious... Why not buy a VM in a DataCenter and host it from there?
@Supperconductor
@Supperconductor 3 жыл бұрын
@@MarkVonBaldi Because you could get taken down like Parler. Better IMHO to use cloud server as a proxy, personally I don't want to open up ports on my home network.
@sainathsingineedi2922
@sainathsingineedi2922 3 жыл бұрын
This is funny and informative at the same time lol😂
@augustday9483
@augustday9483 3 жыл бұрын
A word of advice for anybody thinking of trying this: hosting a public website on your local internet is like painting a huge target on your back. Please make sure you know EXACTLY what you're doing before attempting this, or you are likely to get burned.
@toomasvendelin
@toomasvendelin 3 жыл бұрын
A friend of mine was running a stack of Raspberry Pi at home (he had a static IP). That included a website, a few LDAP servers and what not. Eventually though, he moved to a couple of cheap Zotac boxes with KVM and virtual machines. So it's doable, but slightly more expensive and more powerful machine will probably be a less extravagant, but a better choice.
@yashasvi9655
@yashasvi9655 3 жыл бұрын
No one: Jeff: Different sized cords into different sized holes
@jaroslavzaruba2765
@jaroslavzaruba2765 3 жыл бұрын
What does the no one line add to the joke?
@chairlovawitabat
@chairlovawitabat 3 жыл бұрын
“In case your app is destroyed by a volcano or peaceful protesters” SHOTS FIRED 😂😂😂
@adorablecheetah2930
@adorablecheetah2930 3 жыл бұрын
LOL it came out of nowhere 😂
@110110010
@110110010 3 жыл бұрын
"shots fired", literally, huh?
@ko-Daegu
@ko-Daegu 3 жыл бұрын
@owo グーチmoshi Gov didn’t ban parler is still operates but not allowed to be downloaded in App Store Ans App Store owned by private foaming called Apple In which they hey have freedom to use there services to the way they see it fits If not allowing parler is a thing then be it If you have company would you allow angry chickens on the internet to change what and what you want about your own company I don’t think so
@MyBinaryLife
@MyBinaryLife 3 жыл бұрын
@owo グーチmoshi how did they violate the camera apps terms of service?
@chaseisawesum
@chaseisawesum 3 жыл бұрын
@@ko-Daegu Yes Apple is a private company, but there are legal protections in place that make it so they aren't liable for the content on their platform. When they show a clear bias in their moderation, such legal protections might be removed and they would be held accountable for the illegal activity that happens on their platform, i.e. the large amount of CP that gets posted on twitter.
@developertips2607
@developertips2607 Жыл бұрын
You gained my subscription as soon as you said "peaceful protestor"
@MitchellKager
@MitchellKager Жыл бұрын
There are obviously a lot of issues here with scalability, containerization... But my most important recommendation to anyone trying to do this is to make sure your raspberry pi is issued a static local IP address by your router. Most routers will automatically use DHCP to dynamically assign IP addresses to internal devices so your raspberry pi will be prone to being reassigned a new IP address at which point your port forward will need to be updated. Instead, you can assign a static IP to the pi based on its hardware ID / MAC address!
@lonewolfplays7664
@lonewolfplays7664 9 ай бұрын
How to do that?
@roselpadilla
@roselpadilla 3 жыл бұрын
"Both of which are terrible options, but lets go with the first one... From here we're going to build a NodeJS ap..." 😂
@DSCuber
@DSCuber 3 жыл бұрын
Fireship just to lyk you became my favorite tech youtuber today
@mukulr5171
@mukulr5171 3 жыл бұрын
This is amazing ! Thanks for this Video! Can you put your approach when you are learning new things ! ❤️
@bilaleyrik8680
@bilaleyrik8680 3 жыл бұрын
Thank you so much for this AMAZING and concise tutorial.
@Alan-jg4lf
@Alan-jg4lf 3 жыл бұрын
I highly recommend automating your rpi build with mkaczanowski/packer-builder-arm and Packers ansible-local provisioner, or just flashing the base img and to all your pis and then running Ansible in parallel on all of them. I switch between the two, depending on what I'm doing.
@kristofgilicze
@kristofgilicze 3 жыл бұрын
The thing is that even if they can self host, vendor lock-in might be a major issue. We should really have a decentralized cloud, just like Piper-net :D. Individuals would share their computing power to host the cloud, and the collected fees from clients would be split between automagically.
@LordBadenRulez
@LordBadenRulez 2 жыл бұрын
Host your app on port 80 on a raspberry pi. Russia, China and hackers everywhere approves of this video.
@qianglu9709
@qianglu9709 3 жыл бұрын
Thank for helping us to build website on our own raspberry server, I will definitely need it one day.
@TheNewton
@TheNewton 3 жыл бұрын
For fireships 2021 predictions video I wrote I expected code documentation will need to become even more important/transparent for risk management & as a tool for platform migration. I didn't anticipate it to be from a singular event right when the year starts! I more assumed a series of small tiny wake up calls such as infrastructure brown outs, Industry regulation, or brexit compliance issues, etc would be the type of clarion calls.
@adam-bt5xo
@adam-bt5xo 3 жыл бұрын
Thank you very much, Fireship! As a sequel to this, could we ask for an SSL + certbot setup with ARM docker images? That would be super cool!
@senorpoodles1755
@senorpoodles1755 2 жыл бұрын
lol no, that's way too esoteric
@brendan6569
@brendan6569 3 жыл бұрын
I just woke up, how this dude already on topic with today’s events. Lmao
@halasimov1362
@halasimov1362 3 жыл бұрын
He must be in on the conspiracy! :D
@Gabriel-zr4kz
@Gabriel-zr4kz Жыл бұрын
I did this with Apache2, but with NGINX seems more friendly. Another tip is use pm2 to run your application if you have some power shortcut it'll rerun the processes automatically. Another point is that you can use the Linux CLI instead the GUI to use less resources. And you can save more money buying an Orange Pi board instead of the Raspberry one.
@XxDarkCinisterxX
@XxDarkCinisterxX 3 жыл бұрын
OMG I always wanted a guide like this :o
@stanflintdev
@stanflintdev 3 жыл бұрын
Can't wait for the follow up where you create a data center with hundreds of Raspberry Pis
@tobaadesanya32
@tobaadesanya32 11 ай бұрын
Excellent video man! Great job explaining the fundamentals of how web applications are hosted on the internet!
@ocmaniac1
@ocmaniac1 3 жыл бұрын
very much impressed how dense in information but at the same time rich in content fireship is able to present my favourite topics 🚀
@mcp613
@mcp613 3 жыл бұрын
Like a volcano, or a peaceful protest...
@armaldoillo630
@armaldoillo630 3 жыл бұрын
Is he /ourguy/ ?
@yurayurec6071
@yurayurec6071 3 жыл бұрын
@@armaldoillo630 for sure
@Cheater24a
@Cheater24a 3 жыл бұрын
based
@ko-Daegu
@ko-Daegu 3 жыл бұрын
For people who don’t know he’s talking about the what happened int he halls of Congress by alt-right wing
@ko-Daegu
@ko-Daegu 3 жыл бұрын
@John Doe Oooh sry I’m not American I was confused as what he was talking about so I saw other comment I remember him liking or something but saw many said he was talking about what happen recently. But I agree radical lefts are no better (being antifa or others) But could you elaborate how is blm bad I thought it’s basically saying hey slavery is bad & black people lives matter meaning don’t slave something like that
@EndermanAPM
@EndermanAPM 3 жыл бұрын
When you said they migrated to serverless i thought they moved to lambda functions for a second hehe
@ricosrealm
@ricosrealm 3 жыл бұрын
Yeah... i was confused... then I finally got the joke :)
@DavidJJJ
@DavidJJJ 3 жыл бұрын
Or S3, :)
@nicolascossio5961
@nicolascossio5961 3 жыл бұрын
was confused too, pretty funny joke tho ahahahh
@peraruor
@peraruor 3 жыл бұрын
Awesome! I just loved! The idea is amazing, especially for small busines! Please keep doing videos like these.
@ScottDonald78
@ScottDonald78 3 жыл бұрын
🤣 This was the best gimmick to form a tutorial around. Very bold, very amusing and very informative.
@hamza201183
@hamza201183 3 жыл бұрын
I love this channel even more now :)
@GoodVolition
@GoodVolition 3 жыл бұрын
The thought of having something *on* the cloud and getting kicked off (especially for a big site) is spooky. AWS definitely has to have some secret sauce. The speed of some AWS data transfers is surprisingly fast.
@EvanOfTheDarkness
@EvanOfTheDarkness 2 жыл бұрын
AWS is very expensive as fuck. My understanding is, that companies use it when they need something _fast_ no matter the cost, or when they need scalability over anything else. Most smaller to medium sized companies can be served from a single rack server in the basement just fine for a fraction of the cost.
@pucbg2902
@pucbg2902 3 жыл бұрын
Really this is best video ever seen .... Setting up own cloud in 8 fire mins🔥🔥
@cosmus2584
@cosmus2584 7 ай бұрын
I trust the cloud but Im taking a master's degree in computer engineering, more specifically networking, distributed systems and security. I bought a RPI 4 so I could host my own website so that I could see a glimpse of how this works.
@drprdcts
@drprdcts 3 жыл бұрын
It's probably a good idea to route through Cloudflare, so that a DDOS attack doesn't put down your entire home network.
@drprdcts
@drprdcts 3 жыл бұрын
@@goc9000 If Cloudflare boots you, it's not that big of a deal to switch the DNS to route directly to bare metal. For the time being, Cloudflare is your best bet. No other platform can viably protect you from DDOS attacks. Not saying it's impossible, but it's extremely hard/costly. Bonus points if you can find a Cloudflare alternative in the EU because they have better laws (Germany, Switzerland, Austria, etc)
@billy.n2813
@billy.n2813 3 жыл бұрын
Thank you for this nice video. I learned a lot from it. Indeed, building your own data center is no easy task. And scaling becomes rapidly an issue. I am not a computer networking expert. But, what do you think of an open-source distributed infrastructure as an alternative to AWS and other cloud services. Users will still get billed, but the revenue will help maintain the infrastructure, and eventually pay full-time developers working on the project, etc. I look forward to hearing from you. Thank you for reading! P.S. Please, no toxic comments.
@XDjUanZInHO
@XDjUanZInHO 3 жыл бұрын
You just gave me all the steps to make my own Minecraft server on the pi, thank you so much
@whatamievendoing
@whatamievendoing 2 жыл бұрын
I didn't learn anything new but it's nice to see someone go through the process
@andresromerodev
@andresromerodev 3 жыл бұрын
8:16 was definitely the best moment! 😂😂
@psychoclips6817
@psychoclips6817 3 жыл бұрын
Would definitely be interested in a part two that goes into the making it scalable.
@MickeyMishra
@MickeyMishra 3 жыл бұрын
This is fun stuff to do to get your feet wet. The Low power is great too. I still use a Mac to go and hustle website but just recently took it down since I realized that the Mac took more power than just having a virtual server on my main computer post to website. I'm not really too big in the cloudflare but it does work
@akautosport
@akautosport 2 жыл бұрын
Pretty sweet! I've been trying to figure out how to do this for a while now. Thank you!
@Sabre00
@Sabre00 3 жыл бұрын
I'm doing pretty much the same thing but I am a python guy so I went with Flask option vs the Express route. I am very Interested in the NGINX expansion. The part about getting a static IP from your ISP was a long drawn out process for me. Nice video. Hopefully part two and or the Nginx expansion comes soon.
@0xrod
@0xrod 3 жыл бұрын
I was about to sleep, saw the notification, now sleep no more
@JustSomeRandomIdiot
@JustSomeRandomIdiot 2 жыл бұрын
Literally done this exact thing with my raspberry pi, even used no-ip, quite easy imo and fun.
@zcehtro
@zcehtro Жыл бұрын
[...] In case a natural disaster destroys a respberry pi, like a volcano or... "peaceful protesters". You sir, are one in a million. Keep it coming and I'll stay subscribed. Godspeed.
@oweibor
@oweibor 3 жыл бұрын
When Amazon destroyed Parler.... I asked a question on a nodejs Facebook group, if it was safe or smart to bank our entire business on AWS... The group admin blocked me immediately. That said a lot about the world we live in
@PiousPriest
@PiousPriest 3 жыл бұрын
As someone who has years of network security experience, your question is a correct one. Yes, AWS has crazy levels of redundancy built into their system which can keep you up. The issue is that the threat vector is not simply Layers 1-7 if one is familiar with the OSI model. The threat vector is Layer 8 (an un-official one for human). Regardless if its done via script or manual work, someone will need to give the order to de-platform. The "benefits" of AWS no longer are a benefit, but a liability if the human relationships don't hold. From a business side, AWS grew because the political climate was stable enough to support centralization into such few hands. Between human flight out of areas associated with Big Tech and the increased emphasis to safeguard services and applications from political interference, there will be a massive push to decentralize. You may find George Gilder's Book "Life After Google: The Fall of Big Data and the Rise of the Blockchain Economy" worth reading. When people realize how long they've been toiling away in Big Digital Factories that actively work against their interest, it's going to be a massive shock to the system, one we are just starting to see happen. Hope everything goes well for your business, its getting crazy out there.
@ThaChillz
@ThaChillz 3 жыл бұрын
My interpretation of fireship's political stance: everything is crazy, dude
@danielegvi
@danielegvi 3 жыл бұрын
That's just what everybody is thinking lol
@wowowowzzz
@wowowowzzz 3 жыл бұрын
Most people seem to be over emotional and under analytical
@michaelspraggins5246
@michaelspraggins5246 3 жыл бұрын
You say that, but the only people I've seen using similar memes and jokes are right-wing libertarians. There's a pretty big right-leaning bias in the first half of the video. Kinda disappointing tbh given everything that's happened. While I understand the relevance for this video, I really hope that future videos are truly neutral like past videos have been.
@iagoofdraiggwyn98
@iagoofdraiggwyn98 3 жыл бұрын
@@michaelspraggins5246 so like, your logic in context is: censorship is spooky = right wing bias?
@michaelspraggins5246
@michaelspraggins5246 3 жыл бұрын
@@iagoofdraiggwyn98 Considering the only people who consider censorship of insurrection and attempts to overthrow the government "spooky" (which is not at all what has been said or implied) are right-wing media outlets, yes. No one bats an eye when we censor child porn because everyone understands that it's objectively bad for society and the victims. It's over a very clear line. I don't know why terrorism, threats of violence/murder, and insurrection are somehow not over that same line. I also want to be clear, this isn't an argument I'm looking to engage in as it would be in bad faith. There is literally nothing you could say that would change my mind on this topic, and you would only be proving yourself as an awful, hateful person by attempting to do so.
@michaelmcgovern3434
@michaelmcgovern3434 3 жыл бұрын
Very cool! This would make a great series, I’d love to see more videos about this
@_Jayonics
@_Jayonics 3 жыл бұрын
As someone who is hosting and developing a website on a Raspberry Pi 4 at home, I was told by friends 'Why not use the cloud? Aren't u worried about security? What if u corrupt your Pi, the cloud has regular backups? How will you manage DNS and certificates?' All these kind of things... But I saw something more intriguing about learning everything that is required to host a website, not just the front and backend web development, but the networking, system administration, and cybersecurity knowledge required to host a server. All things that you will not learn in the walled garden of the cloud. Yes, I corrupted my Pi several times from ignorance and silly mistakes, but you learn from your mistakes, you find ways to compensate. When u misconfigure your network u learn from fixing it, you'll hardly come across these issues in the cloud and therefore won't learn how to deal with them. And there are several benefits to developing on a local server: Significantly faster file deployment. Improved security for the developer - if you are debugging and enabling ports for testing your web server, you are testing it within the safe zone of your LAN. Potential for better redundancy and/or distributed workloads - For example, database failover, if the database on your Pi stopped working or corrupted, you could configure a second computer to provide redundancy for your main database. If your Pi was reaching its performance limits you could move the primary database ( or any other service ) over to the secondary. Security & Ownership of your proprietary code - Pretty self-explanatory, you know who can see your code, you know who can't. Scalability and cost - It's a one-time fee to buy a Raspberry Pi, not a subscription [ like the cloud ]. When you start reaching performance bottlenecks in the cloud, your only option is to pay more monthly, as I said in the redundancy point, you can distribute your workloads locally, and if worst comes to worst you can buy another Pi. The skills and knowledge - As I mentioned, you learn the full scope of hosting a server and not just the simplified ease of access the cloud provides.
@saadabbasi2063
@saadabbasi2063 3 жыл бұрын
I hope you don’t go missing 😋🤞
@aboodzz2zz
@aboodzz2zz 3 жыл бұрын
Also worth mentioning that a lot of ISPs blocks incoming traffic to port 80 and 443 for home users. You'll need to use a different port to serve your pages.
@willtjipta
@willtjipta 3 жыл бұрын
Hi Fireship! Any thoughts about building up Raspberry Pis with Infrastructure-as-code vs using IaC on the cloud (ex. Terraform)? Also, do you have any thoughts on creating a private cloud using OpenStack or VMware vSphere?
@ajudicator
@ajudicator Жыл бұрын
Awesome video! Can someone share the calculation on the comparison of compute cost for AWS vs RPI over 3 years?
@ore_bear8045
@ore_bear8045 3 жыл бұрын
Perfect video in this days. Feels like there Will be a battle between good devs who like a free and open web and the big tech DDR/ccp devs
@nullp01nter20
@nullp01nter20 3 жыл бұрын
I am planning on building my own web hosting and this appears. 😂😂😂
@nithinchinni
@nithinchinni 3 жыл бұрын
Most under rated video ............. I had to learn all this stuff the hard way. Countless hours of exploration.
@fdmk
@fdmk Жыл бұрын
Clicked on the video because I found the title interesting. Thought I will learn something new. Turns out I learned almost all this stuff during my childhood before I even got into web development. Hosted a lot of servers for me and buddies that allowed us to play together. Servers like Ventrillo, TeamSpeak, Minecraft even hosted an MMO server ones. Making a distributed network of Rapsberry Pis would be cool though. I would watch that as well.
@Kaiju3301
@Kaiju3301 3 жыл бұрын
This is a good video because I would rather make a server out of raspberry pi and bits of driftwood and junk I found in the dumpster in the shady part of town that has bullet holes in it than do business with amazon.
@Cergorach
@Cergorach 3 жыл бұрын
A Raspberry Pi 4 is a great tool to develop stuff on, it might even run sites if you design your stuff for it optimally, something most developers have forgotten how to. ;) Scaling multiple RP4s is a fun experiment but very inefficient. It's way better to use modern x86 hardware, but you don't need a complete pizza box server setup to get way more power. AMD has released 8 core laptop CPUs that are incredibly powerful for the wattage used, not to mention, they don't have to be big nor break the bank (look up Asus PN50 4800U). But as an experiment anything beyond a RP4 is usually overkill. I think hardware like this makes someone re-evaluate what and how they are making stuff. Do I really need dynamic code that runs every time on the RP4 to display a page counter? Do I or the visitors really need that information? What do I and the visitor do with that information? How do you make your 'service' as lean as possible? Also, can your upload internet connection handle it, it is my understanding that not everyone had a 500/500 fiberglass connection... ;)
@theclockworkcadaver7025
@theclockworkcadaver7025 2 жыл бұрын
@Deborah Hearne That very much depends on what the server needs to do.
@Pete_YT
@Pete_YT 3 жыл бұрын
This is the best channel on KZbin for software devs 🙏
@commander_red
@commander_red 3 жыл бұрын
I have some positive and negative stuff.. Positive: Video is well done, the graphical content was perfect! Negative: Don't know if it is really that good to open port 80, i think 443 would be a better option... The thing is, every port you open is a hole hackers can use to exploit your system. For example, if you have your own website running on an homesystem, you can easily find out the public IP trough the browsers dev-console and thus, could exploit port 80! Some notes for the future: I would recommend to open vscode on an laptop or pc and ssh to the raspberry pi, as every new application you have installed could hurt the performance..! Great video, looking forward to see more!👍
7 Ways to Deploy a Node.js App
9:14
Fireship
Рет қаралды 470 М.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,2 МЛН
船长被天使剪成光头了?#天使 #小丑 #超人不会飞
00:28
超人不会飞
Рет қаралды 13 МЛН
Лизка заплакала смотря видео котиков🙀😭
00:33
Самый большой бутер в столовке! @krus-kos
00:42
Кушать Хочу
Рет қаралды 6 МЛН
I built a smarter smart home
6:56
Fireship
Рет қаралды 523 М.
When Did Raspberry Pi become the villain?
21:54
Jeff Geerling
Рет қаралды 1,3 МЛН
i put a DARK WEB website on a Raspberry Pi!!
23:18
NetworkChuck
Рет қаралды 1,4 МЛН
How to get rich as a solo software developer - The Ultimate Guide
8:51
Top 10 Raspberry Pi Projects for 2022
7:54
Jeff Geerling
Рет қаралды 1,5 МЛН
How programmers flex on each other
6:20
Fireship
Рет қаралды 2 МЛН
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 950 М.
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 1,9 МЛН
Easy Raspberry Pi Projects for 2023!
10:03
Crosstalk Solutions
Рет қаралды 794 М.
Такого вы точно не видели #SonyEricsson #MPF10 #K700
0:19
BenJi Mobile Channel
Рет қаралды 1,9 МЛН