@matrix [jasmine ~]# grep null /etc/nginx/sites/peertube.conf
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api;
try_files /dev/null @api_websocket;
try_files /dev/null @api_websocket;
It's some quirk regarding the upstream directive, like the only way to access it is via try_files, and this guarantees it will always pass up there.
I tried to prove it wrong a couple weeks back or something because someone else rightly complained about it. I did not succeed.