!359 [需求认领] 对接 powerjob 实现分布式任务调度 集成方式参考框架内 xxl-job

* 对接powerjob替换xxl-job实现分布式任务调度
This commit is contained in:
yhan219
2023-06-16 14:58:36 +00:00
committed by 疯狂的狮子Li
parent bbe9dc7dc8
commit effd504d48
209 changed files with 1069 additions and 39363 deletions

View File

@ -31,8 +31,8 @@ http {
server 127.0.0.1:9090;
}
upstream xxljob-admin {
server 127.0.0.1:9100;
upstream powerjob {
server 127.0.0.1:7700;
}
server {
@ -93,14 +93,14 @@ http {
}
# https 会拦截内链所有的 http 请求 造成功能无法使用
# 解决方案1 将 xxljob 服务 也配置成 https
# 解决方案1 将 powerjob 服务 也配置成 https
# 解决方案2 将菜单配置为外链访问 走独立页面 http 访问
location /xxl-job-admin/ {
location /powerjob/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://xxljob-admin/xxl-job-admin/;
proxy_pass http://powerjob/;
}
error_page 500 502 503 504 /50x.html;