Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
HEUDavid committed Sep 12, 2024
1 parent d9e05ed commit b9711a4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ mkdir -p receivepay/log

./receivepay-linux-amd64
```

搭配 nginx,注意 `location /gin` `http://127.0.0.1:8080` 和 配置文件中 `hostRoot` `addr` 保持一致。
```conf
location /gin {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
```

```sh
# webhook 回调
curl -X POST http://localhost:8080/webhook \
Expand Down

0 comments on commit b9711a4

Please sign in to comment.