Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.1 KB

proxy_protocol.md

File metadata and controls

46 lines (40 loc) · 1.1 KB

proxy_protocol

  • if you use haproxy or nginx as L4-layer-proxy of camellia-redis-proxy
  • you can use proxy_protocol for camellia-redis-proxy to get the real ip address of the client
  • if proxy-protocol-enable=true, you can not access redis-proxy direct by redis resp2 protocol anymore
server:
  port: 6380
spring:
  application:
    name: camellia-redis-proxy-server

camellia-redis-proxy:
  console-port: 16379
  password: pass123
  proxy-protocol-enable: true
  transpond:
    type: local
    local:
      type: simple
      resource: redis://@127.0.0.1:6379
  • if you enable proxy-protocol on some port, not all ports, you can use proxy-protocol-ports to specify the ports
server:
  port: 6380
spring:
  application:
    name: camellia-redis-proxy-server

camellia-redis-proxy:
  console-port: 16379
  password: pass123
  tls-port: 6381
  proxy-protocol-enable: true
  proxy-protocol-ports: 6380,6381
  transpond:
    type: local
    local:
      type: simple
      resource: redis://@127.0.0.1:6379

if missing proxy-protocol-ports config, means tls-port/not-tls-port both enable proxy-protocol