Nginx Python Flask website Cloudflare 127.0.0.1:8000 redirect problem

I have a python flask website . I am using gunicorn3 . I add my website to cloudflare .

Everything is okey pages are working but When I click my link from twitter . it redirect to me 127.0.0.1:8000

For example my link is domain.com/post/12

When I click my url from twitter it redirct to me 127.0.0.1:8000/post/12

Here is my nginx conf file https://paste.ubuntu.com/p/84Cyd8xnjg/

How can I solve this problem ? Thank you

Thats something you need to address in your application or configuration. This is not Cloudflare related.

My website working without cloudflare . When I added on cloudflare I am taking this errors. I just looking for how can I solve it

Cloudflare does not send such redirects. Thats your site. Also, that port wouldnt work anyhow.

Maybe you have a broken TLS configuration on your server.

This topic was automatically closed after 14 days. New replies are no longer allowed.