diff --git a/stx/dockerfiles/stx-aptly.Dockerfile b/stx/dockerfiles/stx-aptly.Dockerfile index b3a39f5a..0d10fc81 100644 --- a/stx/dockerfiles/stx-aptly.Dockerfile +++ b/stx/dockerfiles/stx-aptly.Dockerfile @@ -67,6 +67,7 @@ COPY stx/toCOPY/aptly/supervisord.aptly.conf /etc/supervisor/conf.d/aptly.conf # Configure Nginx COPY stx/toCOPY/aptly/nginx.conf.template /etc/nginx/nginx.conf.template COPY stx/toCOPY/aptly/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf +COPY stx/toCOPY/aptly/nginx.conf /etc/nginx/nginx.conf # Bind mount locations VOLUME [ "/var/aptly" ] diff --git a/stx/toCOPY/aptly/nginx.conf b/stx/toCOPY/aptly/nginx.conf new file mode 100644 index 00000000..69d867ed --- /dev/null +++ b/stx/toCOPY/aptly/nginx.conf @@ -0,0 +1,32 @@ + +user nginx; +worker_processes auto; + +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; + + +events { + worker_connections 1024; +} + + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 0; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; +}