21 lines
463 B
Nginx Configuration File
21 lines
463 B
Nginx Configuration File
|
server {
|
||
|
listen 80;
|
||
|
server_name ht.timerzz.com;
|
||
|
|
||
|
#access_log /var/log/nginx/host.access.log main;
|
||
|
|
||
|
location / {
|
||
|
root /usr/share/dist;
|
||
|
index index.html index.htm;
|
||
|
}
|
||
|
|
||
|
location /api/v1 {
|
||
|
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
|
||
|
proxy_pass http://ht-watcher;
|
||
|
}
|
||
|
|
||
|
error_page 500 502 503 504 /50x.html;
|
||
|
location = /50x.html {
|
||
|
root /usr/share/nginx/html;
|
||
|
}
|
||
|
}
|