55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
limit_req_zone $binary_remote_addr zone=sk_limit:10m rate=10r/s;
|
|
|
|
server {
|
|
listen 443 quic;
|
|
listen 443 ssl;
|
|
http2 on;
|
|
http3 on;
|
|
ssl_protocols TLSv1.3 TLSv1.2;
|
|
ssl_early_data on;
|
|
add_header Alt-Svc 'h3=":$server_port"; ma=86400';
|
|
|
|
server_name sk.linuxiarz.pl;
|
|
set $base /var/www/sk.linuxiarz.pl;
|
|
root $base;
|
|
|
|
include config/wildcard.conf;
|
|
|
|
# security
|
|
include config/security.conf;
|
|
|
|
status_zone sk.linuxiarz.pl;
|
|
limit_req zone=sk_limit burst=20 nodelay;
|
|
|
|
# restrict methods
|
|
if ($request_method !~ ^(GET|POST)$) {
|
|
return '405';
|
|
}
|
|
|
|
# logging
|
|
access_log /var/log/angie/sk.linuxiarz.pl.access.log;
|
|
error_log /var/log/angie/sk.linuxiarz.pl.error.log warn;
|
|
|
|
# index.php
|
|
index index.php;
|
|
|
|
# additional config
|
|
include config/general.conf;
|
|
|
|
# handle .php
|
|
location ~ \.php$ {
|
|
include config/php_fastcgi8_1.conf;
|
|
}
|
|
}
|
|
|
|
# HTTP redirect
|
|
server {
|
|
listen 80;
|
|
server_name sk.linuxiarz.pl;
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
location / {
|
|
return 301 https://sk.linuxiarz.pl$request_uri;
|
|
}
|
|
}
|