-
Notifications
You must be signed in to change notification settings - Fork 19
/
iot.conf
37 lines (30 loc) · 916 Bytes
/
iot.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
server {
listen 80;
server_name iot.appinventor.mit.edu jis.qyv.net;
root /var/www;
# client_max_body_size 50M;
location /.well-known {
root /tmp/well;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name iot.appinventor.mit.edu jis.qyv.net;
ssl_certificate /etc/nginx/ssl/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
root /var/www;
# client_max_body_size 50M;
location / {
try_files $uri $uri/ =404;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
location /.well-known {
root /tmp/well;
}
}