mirror of
https://github.com/v55448330/lazy-balancer.git
synced 2026-04-27 16:45:56 +03:00
[GH-ISSUE #27] 使用lazy-balancer 後端的伺服器只係記錄lazy-balancer 的IP #23
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lazy-balancer#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kklam201 on GitHub (Nov 11, 2020).
Original GitHub issue: https://github.com/v55448330/lazy-balancer/issues/27
請問可以記錄原來的IP嗎?
使用lazy-balancer 後端的伺服器只係記錄lazy-balancer 的IP?
還有就是後端的網頁伺服器用使big5 的,如果使用預設的是utf8會變了亂碼,請問可以怎樣修改?
@v55448330 commented on GitHub (Nov 11, 2020):
自定义配置里面自己加header即可
@kklam201 commented on GitHub (Nov 12, 2020):
請問怎樣可以自定义配置,因為我是用docker 直接起動,之後我進入容器後看到每個负载均衡也有做
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
但后端不論IIS ,nginx也获取不到真实ip
如果方便可以提供一下設定的步驟或整個安裝的步驟嗎??