#development
1 messages · Page 212 of 1
i plan to make an editor section in my admin backend for these that uses proper syntax highlighting
it's a tribute to me

@covert gale check https://github.com/IThundxr/opencollective-linkedroles/pull/1
reqwest :3
!!!!!!!!!!!
❤️
phpmyadmin detected
phpmyadmin my beloved ❤️
if (
true
)
{
console.log
(
"hi"
)
}
c++ approves this
you theoretically can by tinkering with clang format settings
has anyone ever use cloudflare d1 (or any cloud sqlite db for that matter) here? is the performance good when migrating from 2gb+ postgres databases
me personally i'd stick with postgres
well
Id like to, however my api is being used a ton
and in a ton of locations
it would be a lot cheaper if it was in workers with sqlite
We've been heads down iterating on D1, and we've just shipped a major new version that's substantially faster, more reliable, and introduces Time Travel: the ability to restore a D1 database to any point in time.
they benchmarked D1 against other dbs
here's a blog post about it
hmmm
I'd consider using d1 if I wasn't so reliant on postgres
I guess ill try using d1 with part of my postgres db and see how it turns out
but it seems good so far
i was gonna build something on D1, but the write limit is 500k per day
postgres users try to use another database technology challenge (impossible)
just pay $5 once, ez
no ty :^)
rip
what is this supposed to be
is it so you can quickly buff/adjust the effects or strengths?
or add something
basically for games where u have item/passive/effect/whatever system, it's better if u keep that in the db
so you dont need to restart the whole bot to include new content
ew nvm
no?
dam
you can use CHECK
nextjs bruh
L
obviously there is
literally no
i edit my code
it processes
i didnt finish editing*
i get error
i finish editing
obviously there is an error
welcome to the club
It'd be rather useless for me as well
honestly in my experience a monolithic design is the good old tried and true design, it works, its fast and robust
stuff like edge and microservice are just buzzwords, but in practice they often fail hard at achieving results
ye
(websites without api)
but for anything else, more often than not, a distributed, edge/microservice/cloud infrastructure makes things slower and introduces more points of failure
well only thing im gonna have to figure out is how to sync 3 postgres dbs
do you actually need that tho?
atleast in usa and europe yes
is it a game server that needs low ping?
its a minecraft server api, being used by 3 hosts already
is the data not cacheable?
if you really need such a design, then your only option would pretty much be some sort of messaging queue feeding the dbs
yeah
I think pg has some built in wal things
because updates can be slow
10min is fine
This is all too big brain fot me
nah its just buzzwords
the whole thing is pretty simple to understand
monolithic = everything in one vps
distributed / microservice = split program into independent parts, optionally in different vps's
edge = stuff copied to multiple vps's accross the world to get stuff close to the user
as with everything when it comes to professional code
professional is optional
code is optional
optional is optional
tim is optional
everything is optional
Partial<Optional>
lol
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (/home/container/node_modules/undici/lib/core/connect.js:190:24)
at /home/container/node_modules/undici/lib/core/connect.js:133:46
at Immediate._onImmediate (/home/container/node_modules/undici/lib/core/connect.js:174:9)
at process.processImmediate (node:internal/timers:476:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
Node.js v18.20.2
Partial<Optional?>?
whats this error
connection timeout
something took too long to respond
is there anything in my code i can fix
or nah
you can try increasing the timeout
:)
yes
i made a script that converts the images to webp on build/dev
thinking that quality={100} does that alr
actually no, it does not

im moving from one server host to another. Is there a way to download a copy of my current server and upload it to my next server?
i assume there is. So i guess my question is will it work?
Erm, not really unless the server host allows you to download all the files at once
your best bet is to use a ftp client
mmmmm yes
root@HDE-02:/srv/containers/rjns-mcvapi# du -sh cache/
208M cache/
root@HDE-02:/srv/containers/rjns-mcvapi#
i love it when my redis cache is 200mb bigger than 1 day ago
aren't a lot of people boycotting redis now
yuh
just wasn't sure if that was still a thing
brain posted a github issue about them changing their licenses and then people started boycotting it
then I saw a video about it

the creator of redis had it coming
he willingly gave up the trademark rights for it to the company then when he stepped down they changed the license
companies will be companies
no integrity
I loved reading through the comments
A lot of people were like "I do not give consent for the use of my code since its no longer open source"
get a map
preferably a proxy api that just dynamically assings me a new proxy each request call i make
and else, suppose i were to buy 20 proxies, will they eventually die? Or do they remain alive?
guys i swear i ain't in the mood for this shit
i never used any proxy service
did you try one of those rotating proxy services out there?
i don't know which one to use
and most of them i want to use are hella fucking expensive
240 a month like suck my dick
therefore i have like 2 questions:
- Does anyone have a good rotating proxy site?
- Suppose i were to just buy a bunch of static proxies. How does the lifespan work? Do they eventually die? Or do they just work for, well lifetime.
you dont buy a proxy, you buy a proxy service
the service has the responsibility of giving you working proxies
i refer to buying a list of static proxies
and who owns those proxies?
@quartz kindle do you know any cheap vps hosts in usa / canada
I mean
contabo/hetzner
usa and cheap don't mix
ikr
you can buy us servers from other places
like contabo
they are a german company but offer amazing prices in us servers
yeah contabo seems a reasonable deal
does contabo like not tell me what cpu i get
its going to be an AMD Epyc
ah ok good
although cpu name doesnt matter much since they likely throttle it anyways for your vps
oh yea
no, it was mohammed
its old
but works!
they have plans for a new one
its just slow at being released
i love how im still hosting all my docker images at home with a 40mbit uplink
i dont really see much use for docker
maybe im not the right client for it
i thought it was like a super light virtual machine but its not really
the os on a container can only be the host os, shouldn't be relied for security or isolation, etc
only thing i see thats close to being isolated is the filesystem
and run it anywhere
and etc
is Ubuntu good to get on my VPS server? I plan to host a discord bot (of course), database, and a webAPI
cant go wrong with ubuntu
its probably one of the easiest also
although im not a fan of canonical for spamming my work email trying to offer their ubuntu services
daily reminder to eat at least one small rock
You'll do fine! Ubuntu is very widely used so you will find support easily
just whatever you do, NEVER run rm -rf /* or anything that looks like it without giving it a lot of thought
also never EVER run chmod 777 /*
it wont warn u
but this will brick the entire system
dont you need to use the -R flag for chmod?
ah yes
for it to be recursive
this is potentially worse than rm, as it's not fixable in any way but full reinstall
it'll fuck up everything
what perm is 777? guessing it denies rwx
why would that be inherently unrecoverable?
cuz u cant restore to original perms
not unless u go file by file running chmod again
because each folder and file has its own perms depending on who created it
certain linux things refuse to work unless it has a very specific perm
ah
also that to
you'll do fine
i dont even know how to connect to it
the digital ocean one had a console thing i just clicked on LOL
no
you using discord.js?
Yes
hopefully this helps you out https://www.youtube.com/watch?v=wqlU2KOxQws
Quick showcase on how the top.gg API can be easily used with the help of the top.gg javascript SDK to give users a reward for voting for your bot as well as how you can easily implement the autoposter library to keep your bot stats up to date on the website.
Credits
Produced...
Thanks
What the hell
Did you make that
nah my little clone I keep as a slave made it
not everyone needs the autoposter
this was made wayyy before my time i cant answer for it ong
same
its a JS tutorial those mfers dont know how to properly import shit
never
:(
false advertisement
you said I could ping you and ask for help
guess not
😔

@harsh nova
-b 1029148061945045026 homophobia
ps_xx.#0 was successfully banned.
Numero 1
And with that I declare pride 2024 commenced
Bot Devs get their btos removed when they get banned right?
Yes
Oh fun
Dude had none tho
time to see how many bot devs get banned
White name behaviour
And highest in the list
Don't leak our secrets
The fellowship of men must not leak details like that to non members
Hopefully what I put in the spoiler isnt innappropriate
Nah ur good
lol
Just I'm wondering why Im storing user data through mysql
methods for data storing are too much but idk what to select
(json, mysql, mssql, postgresql, ...etc)
I thk security and performance (speed etc) is best priority to select method.
so what should i select the method for store such as user data
anyone here use postgres?
I think most people here use postgres
so i just did sudo apt install postgresql and sudo -u postgres psql template1, then ALTER USER postgres with encrypted password 'your_password';, but i cant log in as postgres. Am i missing something simple?
I'd say use postgres out of those options.
But really your database needs will depend on your specific situation.
Are you logging in "locally" ie, are you sshed into the machine when loggin in?
yes
my discord bot and soon-to-be database are all on 1 server
im just SSHing into it
root works, which is how i ran those commands
but this new postgres user does not work. Those are the only 3 commands i ran
What command are you running to login to postgres?
psql -d mydatabase -U myuser
?
i was just trying to log in from the SSH thing
i thought it was a new user, like root is
ah, I dont think postgres users can be sshed into can they?
Ie they're not real users
Unless you actually make the user
Thats what i do yeah
then is my database set up i guess?
i need to watch a video on how to set up the format of the database
I like to visualize my schema by drawing it out before doing anything in the database
I'm not sure how complicated your data is, so that might not be needed
like 5 columns
maybe 4
anyone uses resend's api for mails and stuff? how much time does it take to verify a goddamn domain 😭
Does anyone know what a proxy server is? Like does it distribute a new proxy each time I make a call?
Man fuck these proxy shits
Ill create a managed peer to peer connection where all connections go through a main server, this main server sends it to the other side
Will add latency but yeah fuck it
dont forget to install postgresql-contrib
i think youre trying to overengineer it
i dont see why youd need proxies in the first place
Wym of course I need proxies
I don’t want people to expose each other’s ip addresses
They will ddos the shit out of each other
I am not using proxies anymore though, I am just using a man in the middle type of connection
Where the server distributes the packets instead of end to end
but you have the central server to mitigate that issue already
if you have packets going through the server youve already proxied the connections
you cant do it peer to peer without exposing another users IP
proxies will probably end up costing more performance than just using a single central server like you said
closest is some sort of partial mesh network but youre still exposing some of the participants ip addresses and costing performance
not to mention expensive, unreliable and potentially insecure
you're exposing the user's ip addresses to proxies you dont own
well more of a ring network but same issue, and the packets have to travel across multiple peers, and you better hope they good internet otherwise it will affect the entire call performance
damn really gotta study about networking cuz i dont understand shit about this
networks get more interesting to me day by day so i think ill invest into learning more about them
just recently learned about tcp hole punching
tf is that
where can i start tho?
any free courses or websites yk something or some yt videos

a lot of routers block inbound connections which would make peer to peer connections impossible, so if both sides try to connect to each other at the same time, its treated as an outbound connection which is allowed and so the connection can establish
Learn about firewall hole punching as well
this is mainly computer science in general
That shit is sick too
cs mainly about dsa here 😭
boring
although school managed to make networks the most boring subject to exist when they're very interesting
it doesn't go too deep into them, you only really learn different topologies, tcp vs udp, dns resolution and that's it
protocols as well
seems like the syllabus was designed more for future aspiring software engineers rather than computer scientists
this is the lobby, 2 minute warning and announcement of game starting
then that’s the button for people to type in their confessions and i have the messages saved in an array
this button and the collector ends after 2 minutes
then i get an error when trying to get the bot to post the messages in an embed without the author information
I'm not entirely sure if you can use <Client>.on() inside a command like this. I've never tried anything like this, but I doubt it would make sense or work. Personally, I would probably try to get the response from the modal using <Interaction>.awaitModalSubmit(), although I'm not very familiar with modals either 
https://discordjs.guide/popular-topics/collectors.html#await-modal-submit
my school is the opposite sadly
it goes hella deep
one part of the course was about how the internet works, indeed the protocols etc.
however other part was about security issues and how to exploit these issues to gain network access, etc.
2nd part was lit can't lie
i can call myself a master penetrator now
why has my inspect element been crashing so much recently 😭
Some pages dont allow inspect element
Indeed you should not.
It spawns a listener, but it doesn't despawn it
So its still there
What does that do? Also. Update on the project since I bugged you about questions for so long lol. I got the database working. If I don’t manually add your server key the commands dont work. If I do, they do work. It also updates the list of premium IDs after every command
how is that even possible 
Also got a very basic website set up. I think all I need now is a webAPI
you can prevent it
how do you think discord prevented it in their desktop app
preventing is different but its not possible to not open it
cause all the desktop app is just a web page
thats a electron app tho
you can indeed stop people from opening inspect element
or outright making it useless
some sites redirect you to the home page where there is no content to be inspected
in an electron app sure but not for a web page opened in Chrome ig
o
Uh...
how does that works?
Electron is literally a chromium app
yea
Its essentially a chrome browser
Google it
I dont know myself because quite honestly I dont care to block people from using it

i google it but got an answer of no you can't lmfao
on stack overflow
they just added some event listeners of keys to prevent it
just listen to the contextmenu event and call preventDefault()
yea also saw that one
the contextmenu is inspect element
so if they try and open it any possible way it wont let em
💀

is discord built on electron?
no way
imagine if context menu was inspect element
ye
Either way, yes its possible to prevent it
always has been
should you? no
figured
damn i didn't know!

It's pretty well optimized for electron
Why do you think it uses 500mb +
or, electron got better over the years because i could remember it was shit when i was using it for some webapps.
Electron is inherently bad for performance, but its so well developed that there is no counterpart
i see
hmm there are other frameworks but i think electron got the most functionality stuff
ig
electron has been out for ages
It will take a while for someone to come up with something better.
I mean there is tauri
ig steam is also built on electron
OS updates to a version where the webview is borked?
Say goodbye to your tauri app until they fix it
tauri is nice in concept and quite frankly it's rare for the webview to even break from what i've seen
but since it relies on something out of their control then it can be a little wonky
womp

there are more efficient versions of electron but a lot of production apps dont tend to use them
vscode is better with their electron variant but it still tends to use a lot of ram
performance wise its pretty good though
ive used vscode on low end computers and it always runs well
ive used vscode on a 2015 macbook air like a month ago and it ran fine
that was with the latest os it could update to which was
ahh ok i see. thank you!
monterey
why do networks still tend to use subnet masks if cidr notation is way faster?
In terms of checking whether a host is in the same subnet or not
Cuz subnets masks seem superficial as we need to do bitwise and operators on two different ip bitstreams, while in cidr you can just directly check the x amount of bits to see if they correspond to each other.
pls
electron no more
electron poopoo 💔
The problem is a cross platform and simple "native" app solution. The Arc browser is trying to fix this by bringing Swift to Windows, but they still use WinUI. Iirc, they're working on porting over SwiftUI. For Arc, they're still using WinUI under the hood.
This is great for Windows, but still presents a problem for Linux

wait hollp i am rewatching my network and security lecture
apparently you can share your own private ip address without getting fucked by ddossers?
Cuz it cannot be reached anyway outside of your own subnet/
damn i love nat
Your router is assigned an IP from your ISP which is what actually matters. Your IP your router assigns you via DHCP or whatever else is specific to your network
WAN vs LAN
Why it does this is because IPV4 is running out
yeah exacrly
all destinations/sources of packets are being translated using the router translation table

💀
yeah its all mapped otherwise every device connected to a router would need their own custom IP
not practical
maybe with ipv6
yeah
Every value is already allocated
they already use it in full extent
expand it
only thing they can do is extend the binary sequence of it, which is ipv6
ipv6 was made for this exact reason!
add a fiew extra numbers
It's pretty cool to see that whole networks is subdivided in hierarchy.
Basically, IANA divides it into regions.
The region internet registries divide their blocks into isp blocks.
The isp's then divide it to your bitch ass routers at home
why tf are we moving back in time cuh
i think there are ways to shorten it
by converting the IP into readable phrases
but its still not ideal
ipv6 is the ugly cousin
you can shorten sequences iirs
like RLE, but different
priavte ip addresses can be shared across multiple networks right? What is y'alls private ip?
Genuinely curious if some of us have the same
but yeah i think one of the primary issues with ipv6 is theyre too long, they become impractical to be used by anything other than DNS or computers
127.0.0.1
maan get that loopback interface out of here
im not sure what the algorithm for allocating private ip addresses is but yeah
they usually start with the same sequence per private network which tells the router the ip is part of the private network
i just know it's done using dhcp but that's it lmao
the network part right? That's the first n bits and then the host part follows.
Automod moment 
i think the 166 is also a prefix of some kind too
though chloe, maybe you know this:
but why are we still using subnet masks instead of just cidr notation?
I mean i could leak my vpn ip here
i barely know anything about networks ive only just recently started learning them for my job
💯
ah i see
i can talk a lot about tcp/udp and stuff on that level but network architecture in itself i dont know much
Damn then i got another question for you
i learned about protocols like go back n, selective repeat etc
and what i really couldn't wrap my head around was the 4-way close in tcp
so the tcp client sends the fin flag to the tcp communication socket, which forwards it to the actual tcp server listener.
The server listener then sends through the communication socket a ack flag, then a fin flag? In 2 fucking seperate segments?
Why
i mean 1 packet extra isn't much but if like 200 ppl are connecting to the same listener it becomes a lot of wasted bandwidth allocation
If you think of it as wasted, then you shouldn't use tcp for what ur doing
hell nah look at this, it's wasted.
Tcp when u need integrity, udp when u need low latency
i know, but why first an ack and then a fin
why not combining the flags into 1 seperate segment. It's a close, so udp wouldn't matter in this scenario i am describing.
tcp: Erm, what the fuck did you send me
udp: alright you're good corrupt packet
Because if 1 flag is lost, this is 100% lost if u only send 1 flag
No, because how tcp works is that the client only closes it's own end of the socket if the segment was arrived. Else it will just timeout if it didn't receive an acknowledgement and resend it after x amount of time.
hence i don't know why they are sending 2 seperate flags. How i see it, the more flags we send in seperate segments, the more chance of losing packets and therefore having to retransmit.
mannn chloe always leaving when i am in shambles
Tcp works on "we guarantee your delivery", both for the sender and the receiver
It really tries to be damn sure it was received, and to tell the sender that it was
yeah i know
but if you look closely, the ack segment is not triggering any response.
It is telling the sender it was acknowledged
Yeah but why can't it be within one segment
guys I have a serious question
why is it sending 2 seperate segments.
It would be more efficient if it were to be 1.
Will my macbook get heavier if I download more files?
It can't be 1 cuz they're different flags
you can set multiple flags?
The flags are just bits in the header
1 = active, 0 = non active
Because consistency, you can't risk sending the wrong flag if anything happens
ah i think i see
And 1:1 is much safer than doing 2 ops
are you confused about these 2 being sent as separate packets/flags?
or something else
Yes he's talking abt those
yeah why are they not set in the same segment
i know that some tcp variants already tend to do that
its because after the first ack gets sent back, that means the server has informed the program or resource that has the connection open to close the connection or do some additional processing
owhhh
after that processing is done the ACK is sent by the server to notify the server is done and the connection is released
so it basically gives the client time to 'clean' basically
its kind of like a js socket.on("close")
although its up to the operating system whether they want to immediately send the FIN and not wait on the program because it doesnt really matter
I guess my question wasn't serious enough 😔
I see!
So basically:
the client sends a fin,
server receives it, sends ack and then a fin flag, after which it closes its communication socket,
the client then waits when receiveig the ack and cleans,
then once it received the fin it shall be closed hence it sends an ack back.
then a timeout happens right, after which the client closes the socket?
i see!
If it was on a seriousness meter, the meter would IndexOutOfBoundsException
much love to both of you, finally understand
nuh uh
exactly in case the final ACK by the client is lost
Shoot twice to make sure
although its still sort of subject to the two generals problem
but at that point it doesnt really matter
both parties have negotiated a connection close
ah i see, it's pretty interesting to know
although i wouldnt be surprised if the TCP spec allowed for a packet having both the FIN and ACK flag in that double response
since its not strictly necessary for the connection to wait on the server to close
ah, so the spec probably allows for both variations of it
just in case the server wants to be more clear to the client over its status
but the operating system can spare that extra packet if its pointless
i see, but i think it also just depends on the protocol version the server is running i think
older varitations might want the clear distinction between the ack and fin while newer ones are like fuck it
because the routers are not necessarily required to throw errors right, and they might just have some issues doing so hence the traceroute does not know the host
srry
No need to apologize
ion know it seems like it
yeah i know idk why i apologized. You just need to level up your game
very simple

I know you aren't the one saying this
I may not understand it
but you've done your research and still dont
😏
crazyyy
anyone here ever build a webAPI with stripe?
yeah i did
im currently fighting to install the CLI but it think its working
ngl i was in a support call with them for over 6h to get it installed
im wondering if i can just use this templete
# app.py
#
# Use this sample code to handle webhook events in your integration.
#
# 1) Paste this code into a new file (app.py)
#
# 2) Install dependencies
# pip3 install flask
# pip3 install stripe
#
# 3) Run the server on http://localhost:4242
# python3 -m flask run --port=4242
import json
import os
import stripe
from flask import Flask, jsonify, request
# The library needs to be configured with your account's secret key.
# Ensure the key is kept out of any version control system you might be using.
stripe.api_key = "sk_test_..."
# This is your Stripe CLI webhook secret for testing your endpoint locally.
endpoint_secret = '****'
app = Flask(__name__)
@app.route('/webhook', methods=['POST'])
def webhook():
event = None
payload = request.data
sig_header = request.headers['STRIPE_SIGNATURE']
try:
event = stripe.Webhook.construct_event(
payload, sig_header, endpoint_secret
)
except ValueError as e:
# Invalid payload
raise e
except stripe.error.SignatureVerificationError as e:
# Invalid signature
raise e
# Handle the event
if event['type'] == 'checkout.session.completed':
session = event['data']['object']
# ... handle other event types
else:
print('Unhandled event type {}'.format(event['type']))
return jsonify(success=True)```
homebrew my beloved
I mean...yea
whats the problem
is that not how youre suppose to do it?
I mean it is, and it will work
you will have to modify it to work for what you need by listening to the events that you want
that's about it
right
im just totally in over my head. i have no idea what i need to get what i want to happen
so im just asking questions until i understand
Like I said, its better to focus on your current bot and growing it.
While its okay to plan ahead, doing so too far is not worth it
im not sure if you seen but i did get my database working lastn ight
so manual input into the db does work
Nice
i just wanted to take a stab at this webAPI thing to see if i could get it. if not yeah ill wait
im having fun trying
mainuser@vmi1912125:~$ stripe version
stripe version 1.19.5
```i got stripe installed
like i said, i just want to touble check that if i leave this new app.py running like i do my discord bot, thatll serve as my webAPI
that's just the cli tool btw
for testing, yeah
you still need the respective stripe library for the language you are using
https://docs.stripe.com/payments/handling-payment-events#create-webhook
im just going thru this guide to see if i can wrap my head around it
after which should be pretty simple. depending on which event is triggered, manipulate the db accordingly
i know the 3 stars mean the source didnt respond because it either blocks the traceroute probes or didnt respond for whatever reason
@harsh nova
No
can it also be that the source didn't respind back with an icmp error message?
do you remember how you started up your server that listened for the events? I think thats my problem
nvm i think i got it workin
yes
i think i got it set up and would love to try it on the stripe website but it appears i need SSL
that may be where my journey ends LOL
although they say thats needed for a website, which im not running. I just want to recieve the webhook things from Stripe
i guess im just not sure how to keep this secure
is there a simple way to get one for a Django server?
my server host wants $90 for it
im using Contabo
i feel like im so close
if the server webhooks are triggering properly over localhost, all i need to do it open it up to Stripe and swap the keys around
so thats why i need the SSL
the stripe cli is just a way to locally test things
Look up nginx & cloudflare origin ca certs
It's what I use in production
so you actually want me to put the SSL on the NGINX server ill be making?
I mean using nginx is one way to expose it to the internet and reverse proxying it allowing you to if you want host multiple apis on the same server with different ips/domain names
this doesnt sound too bad
i think the hardest part would be setting up the Nginx server. It took me like 2 hours to finally figure out the Django server
but the cloudflare parts just sounds like its a bunch of keys
i may skip the Nginx part for now
actually im not sure i can. I think i have to use something like Nginx
Cloudflare is pretty easy to setup. Just need to make sure that you have proper cname records!!
i just cant figure out what i need to do
i now have a domain
as cloudflare requires one
The record should link your site to the domain of cloudflare. That’s what I had done in the past. That way your dns resolver will resolve the name servers of cloudflare instead of putting the stress directly onto your mainframe.
You must first host it
And preferably a place where you have access to domain tables
Dns*
i am renting a server on Contabo or whatever it is, where im hosting everything on a server
i have my discord bot, SQL database, and now my local Django server hosted there now
so now ill need to host another server? the Nginx?
nginx is a reverse proxy
it allows you to have multiple things on the same server pointing to different domains/ips
i cant tell if i really need that
for simplicities sake, id say no. But when googling around it said i had to use one to get Stripe to work
its the only way i know to use ssl certs
a star basically means that the router/server/jump didn't reply with an error message to the probe request
this is what they said
so will the Nginx be another server i need to host? Or is it simply an extention to my Django server
is what i cant figure out
the official reasons are either the router is overloaded and since the probe packets are low priority, they were ignored, or the router didn't respond because it blocks the probe requests
It is its own server
It basically proxies your webapi through it and points it to a domain
while also setting up ssl certs that you specify
but it can't be that the router is down or offline because it still managed to be a part of your packet circuit
so they show up as stars only because the mapper literally does not know what the router is since it didn't respond to the probe request
it just passed your packet onto the next node
okay that makes sense. So since i have no many servers running off the same server at this point. How do i find the IP address of the Django server im running? Since its the one that needs to be connected to my domain
aha, the ip address is the one you use to connect to the server
That's the beauty of nginx
It routes it all on the same ip
but points it to different domains
but just to be clear that im doing this right. I got a domain on godaddy and i need to do a type A record in the DNS section that routes it to my main servers IP?

that makes sense
is that IP safe to share?
You can easily get the ip of whatever server a website is running on
then this is what i got
i havent got that far
well that means i cant use cloudflare to get SSL then?
rip
what would be my options with godaddy?
buying their ssl certs
cloudflare is a free option tho
their free tier has certs that last 15 years

lol
Anyway i'd love to help more, but I can't atm.
Its not efficient for me to do so from phone
I will leave it off with, check out nginx, route it to the domain you bought
proxy pass your webapi to it
and ezpz it should work

server {
listen 80;
listen [::]:80;
server_name stockevaluatorbot.com;
location / {
proxy_pass http://localhost:portToYourWebApi;
}
}
that should work
i dont think it has an SSL

use cloudflare + origin ssl
but i just bought this domain on godaddy
cloudflare is a dns
I mean, u can buy domains from it too, but that's a detail
also, godaddy is a hella expensive no?
not really
they charge exactly what the registry charges
godaddy charges less because it retains you for another year, they take the hit
I've seen it charge out the ass
for a domain I bought cheaper on namecheap
yes because they charge registry cost
namecheap charges less because it retains you
most people dont know or want to change registrar after a year so they dont
why should I
can i do this with godaddy or do i need to switch
u can use whatever
you can indeed
godaddy only gives u the domain
I see, Arigato chloe
Chloe for president all I am saying
I might transfer my domain to cloudflare tbh
Rather have my domain and dns all in one place

the only reason you'd get anything above is if u need support or enterprise features
like custom rules and shit
i try my best 😁
Im pretty sure some companies still use cloudflare free tier
What is cloudflare kv
is that like redis in workers
I dont see anything DNSSEC in my DNS section
I hardly ever use workers
workers are cool for stateless apis
like taking screenshots of pages with their puppeteer in cloud shit
Workers are really cool yeah
so cloudflare wants me to remove all nameservers but i cant remove the bottom one
why?
the trashcan remove button is greyed out
okay i cant edit my godaddy nameserves so this wont work
where else can i just buy another domain to skip this bs?
im confused now
i published some random AI website they suggest and it says this
so it does in fact have a SSL
@quartz kindle I have found the perfect solution for my project, 3 main monoliths that are routed by a cf worked based on geolocation
they havent made the ping any worse is the crazy thing
and response times
Dassex is my favourite, it gives you good protection against dns spoofing 🗣️🗣️
Dnssec
i think my godaddy came with an SSL
so im just gonna try it
i think i set up Nginx
django appears to be running
what are the discord servers closest to? usa central, east or west?
afaik US east
my vps gets around 20ms to discord gateway from ashburn, washington DC
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
_____
/ ___/___ _ _ _____ _ ___ ___
| | / _ \| \| |_ _/ \ | _ )/ _ \
| |__| (_) | .` | | |/ _ \| _ \ (_) |
\____\___/|_|\_| |_/_/ \_|___/\___/
Welcome!
This server is hosted by Contabo. If you have any questions or need help,
please don't hesitate to contact us at support@contabo.com.
root@vmd142079:~#```
bro ok im convinced jesus made this panel
I have to login after each action
and it does not apply

huh
contabo
what are you talking about
What do you mean
I am trying to disable vnc for my vps
why
because I dont need it
well
I click disable
and it redirects to login
after I login it just says server error
What exactly are you clicking on?
this but it seems to have worked now
yea it works for me
alright if i go to my IP, it takes me here
i added a
?
a , nice
proxy_pass http://localhost:8000/webhook/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 600s; # Adjust timeout as needed
}
}```
A record
so its gonna shove everything into my localhost django server
rm /etc/nginx/sites-enabled/default
have you symlinked it yet
and what does the entire server block look like
out of curiosity
server {
listen 80;
server_name stockevaluatorbot.com;
location / {
proxy_pass http://localhost:8000/webhook/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 600s; # Adjust timeout as needed
}
}
looks good
make sure to symlink that with the sites-enabled folder
I forgor how to make a symlink with linux ngl
but no work
Did you create a symlink
i believe so
Where did you put this
whats wrong with that
you're not really supposed to
you are meant to put it in sites-available and then symlink it to sites-enabled
its also in sites-available
nano /etc/nginx/sites-available/someconfig
write out your nginx config & save it
sudo ln -s /etc/nginx/sites-available/someconfig /etc/nginx/sites-enabled
sudo nginx -t
sudo systemctl restart nginx
then it should be working
so its working
try it and see
try it with stripe you mean?
pretty sure you can use the stripe cli tool to test it
dont think its limited to just localhost
im not sure the command for that let me see
it'd be the same
stripe listen then my url maybe?
just replace localhost:port -> stockevaluatorbot.com
yeahg
Also
I recommend changing your nginx config
if you plan on making a website for the bot that is
same domain name?
its gonna get overloaded
you are paying for the 12.50$ vps right?








