Verified Commit 94c6c0c8 authored by tr's avatar tr
Browse files

Add a server configuration

parent 89cb05c4
......@@ -73,6 +73,7 @@ COPY --from=builder /usr/local/modsecurity/lib/$MODSECURITY_VE
COPY --from=builder /usr/local/src/ /usr/lib64/nginx/modules/
COPY nginx.conf /etc/nginx/
COPY server.conf /etc/nginx/conf.d/default.conf
COPY modsecurity /etc/modsecurity
RUN mkdir -p /var/log/nginx && \
mkdir -p /etc/modsecurity/rules && \
server {
listen *:80 default;
listen [::]:80 default;
server_name _;
modsecurity on;
client_max_body_size 512M;
location / {
root /var/www;
modsecurity_rules_file /etc/modsecurity/modsecurity.conf;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment