docker/nginxs/docs/Dockerfile
2022-01-17 10:01:48 +01:00

7 lines
207 B
Docker

from nginx:1.21.4-alpine
RUN sed -i "/http {/a\ \ \ \ server_tokens off;" /etc/nginx/nginx.conf \
&& sed -i "s/remote_addr/http_x_forwarded_for/g" /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]