45 lines
842 B
Plaintext
45 lines
842 B
Plaintext
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 quarantine.linuxiarz.pl;
|
|
|
|
include config/wildcard.conf;
|
|
|
|
# restrict methods
|
|
if ($request_method !~ ^(GET|POST)$) {
|
|
return '405';
|
|
}
|
|
|
|
# logging
|
|
access_log off;
|
|
error_log off;
|
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
uwsgi_pass 127.0.0.1:9000;
|
|
|
|
allow 85.221.253.162;
|
|
allow 127.0.0.1;
|
|
deny all;
|
|
}
|
|
|
|
}
|
|
|
|
# HTTP redirect
|
|
server {
|
|
listen 80;
|
|
server_name quarantine.linuxiarz.pl;
|
|
add_header Alt-Svc 'h3=":443"; ma=86400';
|
|
|
|
location / {
|
|
return 301 https://quarantine.linuxiarz.pl$request_uri;
|
|
}
|
|
}
|