Modsecurity is working!

This commit is contained in:
baudneo
2022-02-21 23:17:12 -07:00
parent 49f52c8473
commit 479cbe3a51
9 changed files with 86 additions and 15 deletions

View File

@@ -3,6 +3,9 @@ server {
listen 80;
listen [::]:80;
#<MODSEC_ON>
#<MODSEC_RULES>
set $forward_scheme "http";
set $server "127.0.0.1";
set $port "80";
@@ -25,6 +28,10 @@ server {
listen 443 ssl;
listen [::]:443 ssl;
#<MODSEC_ON>
#<MODSEC_RULES>
set $forward_scheme "https";
set $server "127.0.0.1";
set $port "443";

View File

@@ -8,6 +8,8 @@ server {
# Replaced with /dev/null by default unless ADMIN_PANEL_LOG is set to '1'
access_log <ADMIN_ACCESS_LOG>;
error_log <ADMIN_ERROR_LOG>;
#<MODSEC_ON>
#<MODSEC_RULES>
location /api {
return 302 /api/;