#🔒 django.domain problem

129 messages · Page 1 of 1 (latest)

indigo gate
#

i am having an issue to map my django app to my domain even though i did everything correctly, i even added the ip in my hostinger panel, to match but when i visit my domain "BLANK!!!!". the app is running on django which is running on docker

drowsy cobaltBOT
#

@indigo gate

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

indigo gate
#

anyone

#

helo!!!!!!! any one here that can debug this ?????

#

woah!!! no one guess i unlocked a rare scenario lol

indigo gate
#

?

faint ridge
#

web browsers connect to port 80 by default, not 8000

#

if you visit yourdomain.com:8000 do you see it

indigo gate
#

Tried different browsers

#

Too

faint ridge
indigo gate
#

How long?

faint ridge
#

ive had dns changes that took 1 day

#

it varies i guess

indigo gate
faint ridge
indigo gate
indigo gate
#

Auto correct duhh!

indigo gate
#

I sure is

faint ridge
#

i see the changes

#

so it's not that

indigo gate
#

It'll expire next Jan

indigo gate
#

On linux?

faint ridge
#

dig

#

yes

#

hey wait those aren't the same IPs

indigo gate
# faint ridge yes

Yes I saw the server, it means it's correct, don't know why it isn't showing then???

faint ridge
#

the one here is different

indigo gate
#

So it's the new one

#

The image one was old

faint ridge
#

i can't ping your site

#

by ip

indigo gate
#

I turned of the server

faint ridge
#

i... okay

indigo gate
#

dubugging django now

#

although its correct

#

Gave you a follow on github though

unique onyx
#

Also can you actually run the server so we can debug this?

indigo gate
indigo gate
unique onyx
#

Tell me when you setup the server, and show the IP

indigo gate
#

running everythin g

#

52.6.201.118

#

ip

unique onyx
#

Yep, it now does point to the domain

indigo gate
#

but the domain is not showing the app

unique onyx
#

Let me launch my test tool to browse it

indigo gate
#

while it is pointing to the server

indigo gate
unique onyx
#

It worked for me now

#

Showing you screenshot soon

indigo gate
#

https//texttextify.com:8000/ mine not working

#

http*

unique onyx
#

I'm gonna show you it work for me

#

And I will try to explain it

indigo gate
#

sure

unique onyx
#

Also what device you are using?

indigo gate
#

also the ip is working well and good

indigo gate
unique onyx
#

Ok, let me check

#

Since I need to wait my laptop reinstall VPN...

indigo gate
#

youre using custom forward proxy ??

unique onyx
#

Basically yes, but for all my traffic

#

So I am not selectively doing anything

indigo gate
unique onyx
#

Cloudflare One Agent, which is a slightly different version of Cloudflare Warp

indigo gate
#

still aint working for me

#

ok tell me your browser name

#

dude you there ???

unique onyx
#

Just because it is not HTTPS, it complain

unique onyx
indigo gate
#

all the browsers i have by default switch to https no mtter the link

indigo gate
unique onyx
#

Try remove the s in https

#

And then tell the browser to ignore the fact that it is http and unsafe

#

Also the third issue might be DNS caching which I couldn't find a utility in windows that easily check this

indigo gate
#

no no the server is running on linux

unique onyx
#

DNS caching might apply on both your device and the DNS server you resolving

indigo gate
#

my bad oops i thought you asked my machene

unique onyx
#

No, just your personal device

indigo gate
unique onyx
#

And also the DNS server

#

Since you set ttl to 14400

#

Which basically say:
Btw this record is valid for 4h so you don't have to check again for the next 4h

indigo gate
unique onyx
#

And you can click continue anyway and something like that

indigo gate
unique onyx
indigo gate
#

wait

#

it resets to https ???

#

by default

unique onyx
#

Fun...

#

Do you have other browser

indigo gate
#

opera too

unique onyx
#

Well, your domain isn't HSTS so hmm

#

Your server might still serve response even tho it is HTTPS protocol, but since it cannot serve HTTPS response, it return some invalid thing that browser cannot read ig

indigo gate
#

i guess hsts is forced in my browsers

unique onyx
#

Well, browser will attempt https upgrade if possible

indigo gate
#

so do i need to configure nginx with django ???

#

for reverse proxy and stuffs ???

unique onyx
#

Probably

indigo gate
#

havent treid it

unique onyx
#

Or setting up certificate automatically with nginx might be easier

indigo gate
#

yes will try that

#

thanks for taking time to help me

unique onyx
#

For context, basically setup ACME and request Let's Encrypt to verifyLet's Encrypt would issue a certificate to you and nginx will automatically apply it

indigo gate
#

appreciate it

unique onyx
#

It might require the port to be 443/80 (public facing)

#

Which should be configurable on nginx

indigo gate
#

will try it

drowsy cobaltBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.