location / {
    # Listmonk applies its configured upload limit; nginx must not impose a
    # smaller, unrelated limit on campaign images.
    client_max_body_size 0;
    if (!-f /etc/listmonk/ready) {
        return 503 "Finish Listmonk setup in the server console.\n";
    }
    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;
    proxy_pass http://127.0.0.1:9000;
}
