Skip to content

[Bug] nginx反向代理后 后端拿不到真实访问IP, 只能拿到docker网桥的IP #55

@l3126596029

Description

@l3126596029

Summary

如题, nginx已正确传递
proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme;
使用的是雷池内置的nginx
本人其他应用也是用的雷池反向代理的, 后端正确处理后可获取真实访问IP

Steps to reproduce

nil

Expected behavior

nil

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions