I'm pretty new to hosting in any capacity, but I had a spare raspberry pi laying around and figured I'd try running my own Bitwarden setup with nginx. I am able to access the Bitwarden page with my ip address, so I know for a fact it's at least working. However, I can't access the web page with the domain I own. I currently own the domain willjp.dev and have a an A Record pointing willjp.dev to my IP address.
This is my sites-enabled/default file:
server {
listen 80;
listen [::]:80;
server_name willjp.dev; #domain name
return 301 https://www.willjp.dev$request_uri;
}
server {
listen 443 ssl http2;
server_name willjp.dev; #domain name
ssl_certificate /etc/nginx/ssl/willjp.dev.crt;
ssl_certificate_key /etc/nginx/ssl/willjp.dev.key;
client_max_body_size 128M; # Allow large attachments
location / {
proxy_pass http://0.0.0.0:8080;
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;
}
location /notifications/hub {
proxy_pass http://0.0.0.0:3012;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /notifications/hub/negotiate {
proxy_pass http://0.0.0.0:8080;
}
}
It is port forwarded, I have a static IP address, and I disabled gzip. These are all solutions I have tried from lurking forums.
If anyone could help me with this, I would be eternally grateful!