-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
40 lines (32 loc) · 1.04 KB
/
default.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
server {
listen 80;
listen [::]:80;
server_name j4a202.p.ssafy.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name j4a202.p.ssafy.io;
ssl_certificate /etc/letsencrypt/archive/j4a202.p.ssafy.io/fullchain1.pem;
ssl_certificate_key /etc/letsencrypt/archive/j4a202.p.ssafy.io/privkey1.pem;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
client_max_body_size 0;
location / {
proxy_pass http://spring:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
location /ai/ {
proxy_pass http://flask:5000;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
location /images/ {
alias /home/ubuntu/images/;
}
}