-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
43 lines (36 loc) · 1.11 KB
/
nginx.conf
File metadata and controls
43 lines (36 loc) · 1.11 KB
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
server {
# HTTP 요청이 들어오면
listen 80;
server_name dodream.store www.dodream.store;
location / {
# 모든 요청을 HTTPS로 리디렉션
return 301 https://$host$request_uri;
}
}
server {
# 443 포트에서 SSL(HTTPS) 요청을 처리
listen 443 ssl;
server_name dodream.store www.dodream.store;
# SSL 인증서 경로 설정
ssl_certificate /etc/ssl/certs/fullchain.pem;
ssl_certificate_key /etc/ssl/private/privkey.pem;
# SSL 설정
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
root /usr/share/nginx/html;
index index.html;
location /api {
proxy_pass http://43.201.17.132:8080;
proxy_set_header Connection 'keep-alive';
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 100M;
}
location / {
try_files $uri $uri/ /index.html;
}
}