mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
60 lines
1.7 KiB
Nginx Configuration File
60 lines
1.7 KiB
Nginx Configuration File
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
|
|
location __PATH__/ {
|
|
|
|
# Path to source
|
|
alias __HTML_PATH__/;
|
|
|
|
index index.html;
|
|
|
|
location __PATH__/ide {
|
|
proxy_pass http://localhost:__PORT_IDE__/ide;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
}
|
|
|
|
location __PATH__/preview {
|
|
proxy_pass http://localhost:__PORT_PREVIEW__/preview;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
|
|
}
|
|
|
|
location __PATH__/project {
|
|
proxy_pass http://localhost:__PORT_PROJECT__/project;
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
}
|
|
|
|
location __PATH__/data {
|
|
proxy_pass http://localhost:__PORT_DATA__/data;
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
}
|
|
|
|
location __PATH__/documents {
|
|
proxy_pass http://localhost:__PORT_DATA__/documents;
|
|
proxy_set_header Host $host;
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
client_max_body_size 15M;
|
|
}
|
|
|
|
location __PATH__/demo_project {
|
|
proxy_pass http://localhost:__PORT_PROJECT__/project;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header DbName "dontCodeDemoProjects";
|
|
proxy_read_timeout 86400s;
|
|
proxy_send_timeout 86400s;
|
|
}
|
|
}
|