qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.38k stars 563 forks source link

[Bug] Docker新部署环境后无法获取公共模板 #546

Closed RealfuRyZ closed 1 month ago

RealfuRyZ commented 1 month ago

Verify steps

QD Version

20240210

Bug on OS

Linux

Bug on Platform

Docker/Linux 64位

To Reproduce

1,正常Docker部署项目。 2,注册新用户(管理员),登录后点击下方“公共模板”,转至新标签页后上方有进度条,但最终没有获得模板信息。

Describe the Bug

未能获取模板

QD config

version: "3"
services:
  qd:
    image: qdtoday/qd:latest
    container_name: qd
    depends_on:
      - qd_redis
    ports:
      - "8923:80"
    volumes:
      - "/www/wwwroot/docker/qd/config:/usr/src/app/config"
    environment:
      - DOMAIN=
      - COOKIE_SECRET=binux
      - PBKDF2_ITERATIONS=400
      - AES_KEY=binux
      - REDISCLOUD_URL=redis://qd_redis:6379
    networks:
      - qd_network
    security_opt:
      - seccomp=unconfined
  qd_redis:
    image: redis:alpine
    container_name: qd_redis
    command: ["--loglevel warning"]
    volumes:
      - /www/wwwroot/docker/qd/redis/data:/data:rw
    networks:
      - qd_network

networks:
  qd_network:
    driver: bridge

QD log

Docker容器无报错,但Nginx在http://qd.furyblog.com/subscribe/1/界面返回了304,日志如下:
xxx.xxx.xxx.xxx - - [20/Sep/2024:10:55:53 +0800] "POST /task/2/run HTTP/1.1" 200 317 "http://qd.xxx/xxx/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"
xxx.xxx.xxx.xxx - - [20/Sep/2024:11:01:11 +0800] "GET /subscribe/1/ HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0"

Expected behavior

建议增加每次进入http://qd.furyblog.com/subscribe/1/均进行获取模板动作

Screenshots

No response

RealfuRyZ commented 1 month ago

问题通过删除文件后重新拉起Docker Compose解决,但其中有一点,在配置完Nginx反向代理后,我手动关闭了宝塔的WAF防火墙再访问的http://qd.furyblog.com/subscribe/1/ 这样是能获取到,但是WAF日志中仅有恶意IP访问的记录