location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://127.0.0.1:__PORT__; proxy_redirect off; } location ~ ^/(css|img|js|fonts)/ { root __INSTALL_DIR__/static; # Optionally cache these files in the browser: # expires 12M; } location __PATH__/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://127.0.0.1:__PORT__; proxy_redirect off; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }