-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnginx.conf
45 lines (35 loc) · 1018 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
34
35
36
37
38
39
40
41
42
43
44
45
server {
listen 443 http2 ssl default_server;
ssl_certificate /workspace/cert/cert.pem;
ssl_certificate_key /workspace/cert/key.pem;
root /workspace/ice-test/web;
etag on;
gzip on;
client_max_body_size 25M;
location ^~ /js/ {
expires 1y;
}
location ^~ /css/ {
expires 1y;
}
# location ~ \.(otf|woff|svg|ttf|eot|woff2)$ {
# add_header "Access-Control-Allow-Origin" "*";
# }
# location /socket.io {
# proxy_pass http://socketio-oss;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# }
location / {
index index.html;
# try_files $uri @nodejs;
}
# location @nodejs {
# proxy_pass http://vuer-oss;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto $scheme;
# }
# error_page 502 /502.html;
}