-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
39 lines (33 loc) · 970 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
events {
worker_connections 4096; ## Default: 1024
}
http {
server {
listen 443 ssl;
server_name web.company.com;
ssl_certificate /etc/nginx/server.company.com.crt;
ssl_certificate_key /etc/nginx/server.company.com.key;
root /usr/share/nginx/html;
location / {
try_files $uri @app;
}
location @app {
include uwsgi_params;
proxy_pass http://web:5000;
}
}
# server {
# listen 443 ssl;
# server_name cdn.company.com;
# ssl_certificate /etc/nginx/server.company.com.crt;
# ssl_certificate_key /etc/nginx/server.company.com.key;
# root /usr/share/nginx/html;
# location / {
# try_files $uri @app;
# }
# location @app {
# include uwsgi_params;
# proxy_pass http://cdn:5000;
# }
# }
}