frontend/nginx.conf

41 lines
1.0 KiB
Nginx Configuration File
Raw Normal View History

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;
}
2024-05-12 21:01:17 +08:00
location /api/v1/proxies {
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
proxy_pass http://ht-watcher:8080;
}
location /api/v1/pushers {
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
proxy_pass http://ht-watcher:8080;
}
location /api/v1/watchers {
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
2024-05-12 20:59:48 +08:00
proxy_pass http://ht-watcher:8080;
}
2024-05-14 22:38:10 +08:00
location /api/v1/spider{
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
proxy_pass http://product-spider:8080;
}
location /api/v1/products {
resolver 10.43.0.10 valid=10s; # 6.6.6.6 为自建DNS
proxy_pass http://product-backend:8080;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}