-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
33 lines (29 loc) · 819 Bytes
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
server {
listen 80;
listen [::]:80;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ${DOMAIN};
ssl_certificate /etc/nginx/certs/domain.pem;
ssl_certificate_key /etc/nginx/certs/domain.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
proxy_pass ${URL_TO_REDIRECT};
}
location ${V2RAY_PATH} {
proxy_redirect off;
proxy_buffering off;
proxy_http_version 1.1;
proxy_pass ${V2RAY_INTERNAL_URL};
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}