[fix] Use plain text 502 error page.

This commit is contained in:
opi 2016-03-04 20:26:52 +01:00 committed by Jérôme Lebleu
parent 3909aaddf1
commit 204e3ed3ff

View file

@ -4,4 +4,14 @@ location /yunohost/api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# 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;
}