I’m aware of what’s recommended, thanks. It’s not the way I wanted to go.
I actually ended up figuring it out! Posting it here in case it helps someone else. I had to modify the location block further.
location / {
proxy_pass https://publish.obsidian.md/serve?url=sub.domain.com/:splat;
proxy_ssl_server_name on;
}
The URL in the proxy_pass is what’s written here, but for Netlify, not Nginx, which was why I didn’t initially try it. I’m not sure if the docs are incorrect or perhaps there was something about my setup that made a difference, but there you go!
Published the detailed steps I took on the new site for those who might want to do the same.