-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx.conf
66 lines (47 loc) ยท 1.21 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
upstream app {
server 172.16.51.4:8080;
}
server {
listen 80;
server_name teamchat.shop;
server_tokens off;
client_max_body_size 2000M;
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
autoindex on;
}
location /api {
proxy_pass http://app;
}
# location / {
# return 301 https://$host$request_uri;
# }
}
# server {
# listen 443 ssl;
# server_name teamchat.shop;
# server_tokens off;
# ssl_certificate /etc/nginx/certificate.crt;
# ssl_certificate_key /etc/nginx/private.key;
# ssl_session_timeout 5m;
# ssl_protocols SSLv2 SSLv3 TLSv1.2;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location /api {
# proxy_pass http://172.16.48.118:8080;
# }
# location /chat {
# proxy_pass http://172.16.48.118:8081;
# }
# location /stomp {
# proxy_pass http://172.16.48.118:8081;
# }
# # location / {
# # root /usr/share/nginx/html;
# # index index.html;
# # try_files $uri $uri/ /index.html;
# # autoindex on;
# # }
# }