I solved it, see my answer below!
So I just used certbot to generate an nginx certificate however https:// on my domain doesn't work. It gives me a 403 forbidden error.
SSL Configuration:
server {
listen 443 ssl;
ssl on;
ssl_certificate /etc/letsencrypt/live/[domain].xyz/cert.pem;
ssl_certificate_key /etc/letsencrypt/live/[censored].xyz/privkey.pem;
root /gopanel/sites/[doooomaiiiin cennnsoooored]/public;
index index.php index.html index.htm;
server_name [ehehehe C E N S O R E D].xyz;
location / {
proxy_pass https://localhost;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Any ideas why? Tell me if you need the http configuration. I really don't know how to figure this one out.
NOTE
I am using Node.JS and the Express.JS app is on port 8080 :)