2022-02-10 00:47:20 +01:00
|
|
|
location / {
|
2022-02-10 01:09:31 +01:00
|
|
|
# Path to source
|
2023-08-12 19:35:24 +02:00
|
|
|
root __INSTALL_DIR__/frontend/build/;
|
2022-02-10 01:09:31 +01:00
|
|
|
|
2022-02-10 00:47:20 +01:00
|
|
|
try_files $uri $uri/ /index.html @proxy;
|
|
|
|
error_page 405 @proxy;
|
2022-02-10 01:09:31 +01:00
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|
2022-02-10 00:47:20 +01:00
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
try_files /_bypass_to_proxy @proxy;
|
|
|
|
}
|
|
|
|
|
2023-08-12 19:53:01 +02:00
|
|
|
location /ws
|
|
|
|
{
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /yjs
|
|
|
|
{
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|
|
|
|
|
2022-02-10 00:47:20 +01:00
|
|
|
location @proxy {
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
}
|