Skip to content

Instantly share code, notes, and snippets.

### Unofficial Dump of UniFi system.cfg Properties
###
### WARNINGS:
### - This list is undocumented, unsupported, and incomplete.
### - Some options may be deprecated and ignored.
### - Some options WILL break your setup.
### - Some options work now but WILL break you in a future firmware update.
###
### USING THESE:
### See https://help.ui.com/hc/articles/205146040#2
@weapp
weapp / nginx.conf
Created August 4, 2014 17:21
Return common errors as json in Nginx
error_page 500 /500.html;
location /500.html{
return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}';
}
error_page 502 /502.html;
location /502.html{
return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}';
}