Refactor error page handling and configuration
This commit is contained in:
parent
d2175b20bd
commit
f7d467cf75
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ server {
|
||||||
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/$DOMAIN/privkey.pem;
|
||||||
include snippets/ssl.conf;
|
include snippets/ssl.conf;
|
||||||
|
|
||||||
|
# Error page config
|
||||||
|
include snippets/error-pages.conf;
|
||||||
|
|
||||||
# Check for banned IPs
|
# Check for banned IPs
|
||||||
if ($is_banned) {
|
if ($is_banned) {
|
||||||
return 403;
|
return 403;
|
||||||
|
|
Loading…
Reference in a new issue