server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name <domain-name> www.<domain-name>;

    ssl_certificate /etc/nginx/ssl/live/<domain-name>/fullchain.pem;
    ssl_certificate_key /etc/nginx/ssl/live/<domain-name>/privkey.pem;

    location / {
        root /usr/share/nginx/html;
        try_files $uri $uri/ /index.html;
    }

    location /api/ {
        proxy_pass http://backend:8080;
    }
}