mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
18 lines
526 B
C++
18 lines
526 B
C++
location /yunohost/api/ {
|
|
proxy_read_timeout 3600s;
|
|
proxy_pass http://127.0.0.1:6787/;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Host $http_host;
|
|
|
|
# Custom 502 error page
|
|
error_page 502 /yunohost/api/error/502;
|
|
}
|
|
|
|
# Yunohost admin output complete 502 error page, so use only plain text.
|
|
location = /yunohost/api/error/502 {
|
|
return 502 '502 - Bad Gateway';
|
|
add_header Content-Type text/plain;
|
|
internal;
|
|
}
|