diff --git a/Dockerfile b/Dockerfile
index bbfda2f175bbdc540e45597fd50b30142a61757f..bf4917d7c3861055d5777599e3de3eb37524ea8d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,6 +48,7 @@ RUN cd /tmp/nginx-${NGINX_VERSION} && \
   --with-threads \
   --with-file-aio \
   --with-http_ssl_module \
+  --with-http_realip_module \
   --with-http_auth_request_module \
   --with-debug \
   --with-cc-opt="-Wimplicit-fallthrough=0" && \