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

7
nginx/error.conf Normal file
View File

@@ -0,0 +1,7 @@
error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 421 422 423 424 425 426 428 429 431 451 500 501 502 503 504 505 506 507 508 510 511 /error_message;
location = /error.html {
ssi on;
internal;
root /etc/nginx/error;
}