I'm using ruby on rails in a docker container running my website https://redrebelgames.com on port 3000. I'm trying to setup NGINX to redirect http:// traffic to https:// and redirect port 80 to port 3000. It's working if you go directly to the IP address: 143.244.156.208. It's even redirecting the traffic to port 80. However, some of the photos are not loading as seen below:

And the domain itself is not working. What's wrong with my configuration in /etc/nginx/sites-available/default? You can see the inner of the file below:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
location / {
proxy_pass http://localhost:3000;
}
}
server {
server_name redrebelgames.com;
location / {
proxy_pass http://localhost:3000;
}
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/redrebelgames.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/redrebelgames.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
server {
if ($host = redrebelgames.com) {
return 301 https://$host$request_uri;
}
listen 80 ;
listen [::]:80 ;
server_name redrebelgames.com;
return 404;
}