I’m trying to self host my portfolio on an old laptop running Ubuntu server. I’ve successfully set up docker and nginx. I got a DNS subdomain from freedns.afraid.org.
The IP connected to the DNS matches my server’s public IP address.
I can connect with https://mypublicip/ from outside the network, but it shows as an insecure connection and the https has lines going through it in the browser.
Any attempts to connect to the website via DNS have failed, and trying to connect via IP on port 80 fails as well. I really have no clue what is going on, let me know if you need more information, or if this is the wrong place to ask for help with this sort of thing.
Edit: Whatever problem I had before, it seems its been fixed. However my subdomain is being blocked by ISPs. Thank you for the help everyone, I’ll probably have to do cloudflare tunneling instead of fully self-hosting it.
Have you set up certificates with LetsEncrypt or something similar?
Since you’re running it on your own hardware and obviously have admin privileges, you could try out Certbot:
https://certbot.eff.org/
HTTPS requires signed certificates to be able to connect, that’s part of the trust provided in the security. Also, HTTPS is port 443 while HTTP is port 80.
This is likely correct but the browser’s errors should be telling you what the error(s) is/are.
The error was: ERR_CONNECTION_TIMED_OUT. I also got an ERROR_CONNECTION_REFUSED earlier.
Yes, that’s what I did.