mirror of
https://github.com/YunoHost-Apps/tooljet_ynh.git
synced 2024-10-01 13:34:55 +02:00
38 lines
806 B
Nginx Configuration File
38 lines
806 B
Nginx Configuration File
location / {
|
|
# Path to source
|
|
root __INSTALL_DIR__/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 /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;
|
|
}
|
|
|
|
location @proxy {
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
}
|