Skip to content

Commit

Permalink
Update default
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyaindigo authored Apr 9, 2022
1 parent b97dc31 commit 903ff94
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions default
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2 reuseport backlog=131072 fastopen=256;
listen [::]:443 ssl http2 reuseport backlog=131072 fastopen=256;
server_name domain.me;
add_header Allow "GET" always;
if ( $request_method !~ ^(GET)$ ) {
return 444;
}
server_name domain.me;
ssl_certificate /etc/ssl/domain.me.pem;
ssl_certificate_key /etc/ssl/domain.me.key;
ssl_dhparam /etc/ssl/dhparams.pem;
Expand All @@ -21,11 +24,9 @@ server {
add_header X-Xss-Protection "1; mode=block" always;
resolver localhost valid=300s;
ssl_buffer_size 8k;
ssl_prefer_server_ciphers off;
ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
ssl_prefer_server_ciphers off;
location / {
proxy_pass https://youtube.com;
limit_rate 1000k;
proxy_pass http://127.0.0.1:8080/;
proxy_redirect off;
}
location /v2ray {
Expand Down

0 comments on commit 903ff94

Please sign in to comment.