refactored nginx configs

- handle CORS within nginx
- remove allow-headers from CORS
- add custom dynamic error pages
- remove unused fastcgi
- removed OPTIONS backend
- remove previous custom errorDirective
- moved proxy directives to appropiate file
This commit is contained in:
Michael C
2022-01-06 18:42:48 -05:00
parent da03958e97
commit 164a9dab17
8 changed files with 59 additions and 69 deletions

15
nginx/error_map.conf Normal file
View File

@@ -0,0 +1,15 @@
map $status $status_text {
400 'Bad Request';
401 'Unauthorized';
403 'Forbidden';
404 'Not Found';
405 'Method Not Allowed';
408 'Request Timeout';
409 'Conflict';
429 'Too Many Requests';
500 'Internal Server Error';
502 'Bad Gateway';
503 'Service Unavailable';
504 'Gateway Timeout';
505 'HTTP Version Not Supported';
}