7 lines
207 B
Docker
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;"]
|