-
Notifications
You must be signed in to change notification settings - Fork 0
/
default
39 lines (29 loc) · 930 Bytes
/
default
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
# Default server configuration
server {
listen 80;
listen [::]:80;
server_name homeapp.ddns.net homeapp.ddns.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/homeapp.ddns.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/homeapp.ddns.net/privkey.pem;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
proxy_pass https://127.0.0.1:3000;
}
location /api {
proxy_pass https://127.0.0.1:5001;
}
location /pc {
proxy_pass http://192.168.0.121:80;
}
location /cam {
proxy_pass http://192.168.0.200:80;
}
}