-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
47 lines (36 loc) · 1.22 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
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name baekjoonrooms.com www.baekjoonrooms.com api.baekjoonrooms.com www.api.baekjoonrooms.com;
location / {
rewrite ^ https://$server_name$request_uri? permanent;
}
}
server {
listen 443 ssl;
server_name baekjoonrooms.com www.baekjoonrooms.com;
location / {
proxy_pass http://223.130.146.179:5173;
}
ssl_certificate /etc/letsencrypt/live/baekjoonrooms.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/baekjoonrooms.com/privkey.pem;
}
server {
listen 443 ssl;
server_name api.baekjoonrooms.com www.api.baekjoonrooms.com;
location / {
proxy_pass http://223.130.146.179:4000;
}
ssl_certificate /etc/letsencrypt/live/baekjoonrooms.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/baekjoonrooms.com/privkey.pem;
location /socket.io/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_pass http://223.130.146.179:4000;
}
}
}