This commit is contained in:
+18
-16
@@ -1,19 +1,20 @@
|
||||
apiVersion: v1
|
||||
data:
|
||||
nginx.conf: "load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so;\nworker_processes
|
||||
1;\nevents { worker_connections 1024; }\n\nhttp {\n\n\tsendfile on;\n\tclient_max_body_size
|
||||
1500M; \n\tserver_names_hash_bucket_size 1024;\n proxy_http_version 1.1;\n
|
||||
\ proxy_set_header X-Forwarded-Scheme $scheme;\n proxy_set_header
|
||||
\ Accept-Encoding \"\";\n\tproxy_set_header Host $host;\n\tproxy_set_header
|
||||
\ X-Real-IP $remote_addr;\n\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n\tproxy_set_header
|
||||
\ X-Forwarded-Host $server_name;\n\n\t#compression settings\n\tgzip on;\n\tgzip_types
|
||||
text/plain application/xml application/json image/svg+xml text/css;\n\tgzip_min_length
|
||||
1000;\n \n\t#custom log format to display the webiste visited and the IP
|
||||
used\n\tlog_format my_custom_format '$http_host \\t $remote_addr - $remote_user
|
||||
[$time_local] \"$request\" $status $body_bytes_sent \"$http_referer\" \"$http_user_agent\"';\n
|
||||
\ log_format ip_audit '$remote_addr [$time_local]';\n log_format
|
||||
backend_debug '$remote_addr - $remote_user [$time_local] '\n '\"$request\"
|
||||
$status $body_bytes_sent '\n '\"$http_referer\" \"$http_user_agent\"
|
||||
1;\nevents { worker_connections 1024; }\n\nhttp {\n\n\tsendfile on;\n\t#client_max_body_size
|
||||
1500M;\n client_max_body_size 15000M; \n\tserver_names_hash_bucket_size
|
||||
1024;\n proxy_http_version 1.1;\n proxy_set_header X-Forwarded-Scheme
|
||||
$scheme;\n proxy_set_header Accept-Encoding \"\";\n\tproxy_set_header
|
||||
\ Host $host;\n\tproxy_set_header X-Real-IP $remote_addr;\n\tproxy_set_header
|
||||
\ X-Forwarded-For $proxy_add_x_forwarded_for;\n\tproxy_set_header X-Forwarded-Host
|
||||
$server_name;\n\n\t#compression settings\n\tgzip on;\n\tgzip_types text/plain
|
||||
application/xml application/json image/svg+xml text/css;\n\tgzip_min_length 1000;\n
|
||||
\ \n\t#custom log format to display the webiste visited and the IP used\n\tlog_format
|
||||
my_custom_format '$http_host \\t $remote_addr - $remote_user [$time_local] \"$request\"
|
||||
$status $body_bytes_sent \"$http_referer\" \"$http_user_agent\"';\n log_format
|
||||
ip_audit '$remote_addr [$time_local]';\n log_format backend_debug '$remote_addr
|
||||
- $remote_user [$time_local] '\n '\"$request\" $status
|
||||
$body_bytes_sent '\n '\"$http_referer\" \"$http_user_agent\"
|
||||
'\n 'upstream_status=$upstream_status';\n log_format
|
||||
localization '$remote_addr - $remote_user [$time_local] '\n '\"$request\"
|
||||
$status $body_bytes_sent '\n '\"$http_referer\" \"$http_user_agent\"
|
||||
@@ -37,9 +38,10 @@ data:
|
||||
of country codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\n\n\tmap
|
||||
$allowed_country $should_log_blocked {\n\t\tno 1;\n\t\tdefault 0;\n\t}\n\n\tinclude
|
||||
/etc/nginx/deny.d/*.conf;\n\tinclude /etc/nginx/conf.d/*.conf;\n include
|
||||
/etc/nginx/blacklisted.d/*.conf;\n\n\t# adding this line for the fial2ban settings\t\n
|
||||
\ #map $cookie_session_id $blck_lst_ses { include /etc/nginx/blacklisted.d/blacklisted-sessions.map;
|
||||
}\n\t#add extra file for any extra work \n include /etc/nginx/extra.conf.d/*.conf;\n\n\n\tresolver
|
||||
/etc/nginx/blacklisted.d/*.conf;\n include /etc/nginx/geoip.d/*.conf;\n\n\t#
|
||||
adding this line for the fial2ban settings\t\n #map $cookie_session_id
|
||||
$blck_lst_ses { include /etc/nginx/blacklisted.d/blacklisted-sessions.map; }\n\t#add
|
||||
extra file for any extra work \n include /etc/nginx/extra.conf.d/*.conf;\n\n\n\tresolver
|
||||
127.0.0.1 ipv6=off valid=40s; # The DNS IP server\n\t\n\t#https://www.tweaked.io/guide/nginx-proxying/\n\tproxy_cache_path
|
||||
/tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;\n\n\n}\n\n\n"
|
||||
kind: ConfigMap
|
||||
|
||||
Reference in New Issue
Block a user