-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.conf
39 lines (36 loc) · 1.53 KB
/
file.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
34
35
36
37
38
39
server {
charset utf-8;
listen 443 ssl;
server_name abc.com;
ssl_certificate /usr/local/nginx/cert/abc.com.crt;
ssl_certificate_key /usr/local/nginx/cert/abc.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
access_log /usr/local/nginx/logs/transfer9000_access.log;
error_log /usr/local/nginx/logs/trasfer9000_error.log debug;
error_page 497 https://abc.com$uri?$args;
gzip on;
gzip_comp_level 9;
gzip_types text/css text/plan text/xml application/javascript application/x-javascript application/html application/xml image/png image/jpg image/jpeg image/gif image/webp image/svg+xml;
location / {
root /www/LAN_File_Conveyor/client/;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /server/{
proxy_connect_timeout 10;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_headers_hash_max_size 51200;
proxy_headers_hash_bucket_size 6400;
proxy_pass http://127.0.0.1:3000/;
client_max_body_size 20000m;
}
}