pythonofftopic | Unsorted

Telegram-канал pythonofftopic - Offtopic

12466

Offtopic group for casual talking about anything. @rules_for_python still apply (except for the ontopic rule)

Subscribe to a channel

Offtopic

lol I thought you were insulting but I wasn't sure

Читать полностью…

Offtopic

nice, I like Hatsune Miku too

Читать полностью…

Offtopic

I just realized that if I order a pizza with radius z and height a, its volume is exactly pi•zza

Читать полностью…

Offtopic

1L of fresh water wasted

Читать полностью…

Offtopic

the speed of wired internet is 100mbps~200mbps.

Читать полностью…

Offtopic

your wired internet has a limit ?

Читать полностью…

Offtopic

at first I thought it's 409kb

Читать полностью…

Offtopic

The better question should be: why is 100, hundred?

Читать полностью…

Offtopic

The Timezones God decided it that way

Читать полностью…

Offtopic

historical reasons
google sexagesimal number system

Читать полностью…

Offtopic

Take a look at Cloudflare and what they do...
They have extensive documentation

What you will do?
Do the reserch.
See how other web apps deal with this...

It's not like you are inventing the first webapp...

Читать полностью…

Offtopic

Of course you can send requests without frontend - see the issue in lacking basic knowlege for any of this??

You can never stop it, but you can protect your resources and make it hard for them...

This is where all those words i said before come into play

Читать полностью…

Offtopic

Do you know what domains are?
Like your xyz.com?
Do you know what DNS server is and what it does?

Your IP is still exposed and everyone can just script to send requests directly to your backend bringing your VPS to a crawl. No one needs your frontend to send requests....

You should really and i mean really learn about security implications of hosting applications online

Читать полностью…

Offtopic

Guess you need to learn how request/response works...

Your frontent needs to know where your backend is, so it can send it requests and recive a response.
And exposing your backend directly without any protections in place is a recipe for getting hacked.

Things like reverse proxies, forward proxies, firewalls

Those are not just words, they are actual used components of every web app - no matter how big or small

Читать полностью…

Offtopic

Well, that's interesting.
I don't like to read content created by AI,
but it is such a waste of time waiting for people's answers.

Читать полностью…

Offtopic

not wasted since modern DCs are closed loop.

Читать полностью…

Offtopic

The server storing that file requires electricity, colling. All requires water

Читать полностью…

Offtopic

what the logic on this?

Читать полностью…

Offtopic

Mongodb's website say to pull this
https://hub.docker.com/r/mongodb/mongodb-community-server

But see when i search in google they say official mongo is:
https://hub.docker.com/_/mongo

so in real production or learning what i shold learn and practise? what do you guys say to use which one?

Читать полностью…

Offtopic

NO i use hotspot from my phone 's sim internet😅

Читать полностью…

Offtopic

nobody is going to watch these videos

Читать полностью…

Offtopic

My Half Day Internet Pack will got Exhausted 😅

Читать полностью…

Offtopic

And why it should be of 100seconds

Читать полностью…

Offtopic

Go to r/stupidquestions and you will fiind your answer there

Читать полностью…

Offtopic

why 1 minute should be 60 seconds?

Читать полностью…

Offtopic

what i will do now ?
i found my fastapi basic app just serve the webpage by itself and do some backend work so i will just run this with a caddy right reverse proxy?
But still the user can know my backend 's vps's ip address i can really not able to stop this so what become good here?

Читать полностью…

Offtopic

you means if i host my main website page (xyz.com) in github page and i want when user will submit write some data or upload file and then press the submit button this data will go to (vps.xyz.com this subdomain), and you say even a user without open the xyz.com he open api_dog and send directly a post /get/put request to my vps.xyz.com will this you means to say?
we just cannot stop this because this is web, my server will serve anyone request to get a resource so what risk you say, that many user / even automation bot will try to scrap information from my server is this wrong?

finally what you say how i will serve the html css from fastapi no problem right?

Читать полностью…

Offtopic

so still when a request will come to a ip address i will there keep a reverse proxy with caddy this caddy will run in the same vps, right?
so user must will see the ip address of my vps else what you say?
What i say, as my fastapi is not sending the .html, .css, .js file rather github page will serve those and in github page there will a link of my vps's open public ip. so else what more separate i will make.
you say my github page will send request to vps.xyz.com and this xyz.com (hosted in github) will be send backe request to vps.xyz.com where fastapi is running, the data will go back to user right u say this?

Читать полностью…

Offtopic

From This /channel/Python/2268903

Hey i am really confusing what you, previously you say i need to have fastapi is backend right?

So what you are saying when a request to my fastapi there so user will know my vps's ip address right?

Frontend is visible to everyone - you really want to expose your VPS directly online? With no protection whatsoever...
Sure be my guest...

As you already say i need to make fastapi separate only it need to do handle api thigns so i say my github page will serve the html,css, js and fastapi will only send the valid data from backend.

BEcause as you means to say fastapi should not send whole html page

Читать полностью…

Offtopic

i can pay that for 1$

Читать полностью…
Subscribe to a channel