captncraig / caddy-realip

Real-IP middleware for caddy
MIT License
18 stars 9 forks source link

caddyserver 0.8.3: Unknown realip arg: cloudflare #1

Closed treviser closed 7 years ago

treviser commented 8 years ago

This is my caddyfile:

flohmarkt-zug.ch, www.flohmarkt-zug.ch { # Your url should go here..
  proxy / http://127.0.0.1:8069 { # Fill in the correct port..
    proxy_header Host {host}
    proxy_header X-Forwarded-Host {host}
    proxy_header Proto {scheme}
    proxy_header X-Forwarded-For {remote}
    }
#  proxy /longpolling http://127.0.0.1:8072 { # in case you use it
#    proxy_header Host {host}
#    proxy_header X-Forwarded-Host {host}
#    proxy_header Proto {scheme}
#    }
  realip cloudflare

  gzip
  log /var/log/caddy/flohmarkt-zug.access.log
  errors /var/log/caddy/flohmarkt-zug.error.log
  tls {
    max_certs 100
    }
}

Am I doing something wrong or is this an issue?

wyattjoh commented 8 years ago

Also experiencing the same problem.

captncraig commented 8 years ago

Sorry, I must have missed an else in there. Should be fixed in master. Updating for the next caddy version now.

treviser commented 8 years ago

Thank you!

treviser commented 7 years ago

This can be closed now, me thinks :-)