-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.conf
86 lines (72 loc) · 2.73 KB
/
api.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
server {
server_name travel.dbaid.shop;
#client_max_body_size 12M;
# for LINE Bot or Flask Web
# location /callback {
# include uwsgi_params;
# #uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
# uwsgi_pass 127.0.0.1:5000;
# #proxy_pass http://your_ip:your_port;
# }
location /user {
include uwsgi_params;
#uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
uwsgi_pass 127.0.0.1:8000;
#proxy_pass http://your_ip:your_port;
}
# location /users {
# include uwsgi_params;
# #uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
# uwsgi_pass 127.0.0.1:8000;
# #proxy_pass http://your_ip:your_port;
# }
location /dailyinfo {
include uwsgi_params;
#uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
uwsgi_pass 127.0.0.1:8000;
#proxy_pass http://your_ip:your_port;
}
location /useralldata {
include uwsgi_params;
#uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
uwsgi_pass 127.0.0.1:8000;
#proxy_pass http://your_ip:your_port;
}
# location /weather {
# include uwsgi_params;
# #uwsgi_pass unix:/home/<<account>>/<<project>>/<<project>>.sock;
# uwsgi_pass 20.221.67.156:6000;
# #proxy_pass http://your_ip:your_port;
# }
# for Web or LIFF
#location /test {
#root /home/<<account>>/<<project>>;
#alias /home/<<account>>/<<project>>;
#}
# listen 443 ssl; # managed by Certbot
# ssl_certificate /etc/letsencrypt/live/travel.dbaid.shop/fullchain.pem; # managed by Certbot
# ssl_certificate_key /etc/letsencrypt/live/travel.dbaid.shop/privkey.pem; # managed by Certbot
# include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
# ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/travel.dbaid.shop/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/travel.dbaid.shop/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
# server {
# if ($host = travel.dbaid.shop) {
# return 301 https://$host$request_uri;
# } # managed by Certbot
# server_name travel.dbaid.shop;
# listen 80;
# return 404; # managed by Certbot
# }
server {
if ($host = travel.dbaid.shop) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name travel.dbaid.shop;
listen 80;
return 404; # managed by Certbot
}