location / { # Path to source root __FINALPATH__/frontend/build/; try_files $uri $uri/ /index.html @proxy; error_page 405 @proxy; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } location /api/ { try_files /_bypass_to_proxy @proxy; } location @proxy { proxy_pass http://127.0.0.1:__PORT__; proxy_redirect off; proxy_set_header Host $host; }