| | |
| | | server 127.0.0.1:7700; |
| | | } |
| | | |
| | | upstream easyretry-server { |
| | | server 127.0.0.1:8800; |
| | | } |
| | | |
| | | server { |
| | | listen 80; |
| | | server_name localhost; |
| | |
| | | } |
| | | |
| | | # 解决 powerjob 代理之后静态文件无法访问的问题 请勿修改乱动 |
| | | location ~ ^/(js|css|jpg|png|svg|woff|ttf|ico|img)/ { |
| | | location ~ ^/(js|img|fonts)/ { |
| | | proxy_pass http://powerjob-server; |
| | | } |
| | | |
| | | location /easy-retry/ { |
| | | 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://easyretry-server/; |
| | | } |
| | | |
| | | error_page 500 502 503 504 /50x.html; |
| | | location = /50x.html { |
| | | root html; |