init: alpine base git server
This commit is contained in:
30
nginx/conf.d/vhost/www.guzal.cc-443.conf
Normal file
30
nginx/conf.d/vhost/www.guzal.cc-443.conf
Normal file
@ -0,0 +1,30 @@
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name www.guzal.cc;
|
||||
|
||||
http2 on;
|
||||
|
||||
ssl_certificate /etc/nginx/certs/ca.cer;
|
||||
ssl_certificate_key /etc/nginx/certs/ca.key;
|
||||
ssl_session_timeout 5m;
|
||||
ssl_protocols TLSv1.3 TLSv1.2;
|
||||
ssl_prefer_server_ciphers on;
|
||||
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
|
||||
|
||||
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
|
||||
return 444;
|
||||
}
|
||||
|
||||
if ($http_user_agent ~* LWP::Simple|BBBike) {
|
||||
return 403;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/web_root/www.ixayda.com/home;
|
||||
}
|
||||
|
||||
error_page 400 403 404 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user