Comment on
Lemmy from Scratch showing JSON at set URL
Take a look at the config from docker (https://github.com/LemmyNet/lemmy/blob/main/docker/nginx.conf). It proxies to either the frontend or the server based on the request headers/method/path etc.