diff --git a/templates/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml b/templates/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml index 4071311..d19580e 100644 --- a/templates/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml +++ b/templates/dockerservice/home/hayato/compose/jenkins-deb/docker-compose.yml @@ -9,6 +9,7 @@ services: - reverse-proxy volumes: - jenkins_deb:/usr/share/nginx/html + - ./nginx.conf:/etc/nginx/nginx.conf:ro volumes: jenkins_deb: diff --git a/templates/dockerservice/home/hayato/compose/jenkins-deb/nginx.conf b/templates/dockerservice/home/hayato/compose/jenkins-deb/nginx.conf new file mode 100644 index 0000000..1bab19e --- /dev/null +++ b/templates/dockerservice/home/hayato/compose/jenkins-deb/nginx.conf @@ -0,0 +1,37 @@ + +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; + keepalive_timeout 65; + + server { + server_name jenkins-deb.hayaworld.home; + listen 80; + location / { + alias /usr/share/nginx/html/; + autoindex on; + autoindex_exact_size on; + autoindex_format html; + autoindex_localtime off; + } + } +}