This commit is contained in:
Mateusz Gruszczyński
2025-11-17 10:05:34 +01:00
parent 537a2f76d0
commit 1f5c01a22f

View File

@@ -19,39 +19,41 @@ server {
include config/wildcard.conf;
# security
#include config/security.conf;
status_zone rspamd.linuxiarz.pl;
limit_req zone=rspamd_limit burst=20 nodelay;
# restrict methods
# Restrict methods
if ($request_method !~ ^(GET|POST)$) {
return '405';
return 405;
}
# logging
access_log off;
error_log off;
# Logging
access_log /var/log/angie/rspamd.linuxiarz.pl.access.log;
error_log /var/log/angie/rspamd.linuxiarz.pl.error.log warn;
location / {
proxy_pass http://rspamd/;
include config/proxy.conf;
}
# additional config
# include config/general.conf;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_buffering off;
proxy_request_buffering off;
}
}
# HTTP redirect
server {
listen 80;
server_name rspamd.linuxiarz.pl;
add_header Alt-Svc 'h3=":443"; ma=86400';
# restrict methods
if ($request_method !~ ^(GET)$) {
return '405';
return 405;
}
location / {