Skip to content

Commit

Permalink
jenkins-deb-container returns auto-index
Browse files Browse the repository at this point in the history
  • Loading branch information
cradle8810 committed Nov 1, 2024
1 parent 0db0677 commit 8582684
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
- reverse-proxy
volumes:
- jenkins_deb:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf:ro

volumes:
jenkins_deb:
Expand Down
37 changes: 37 additions & 0 deletions templates/dockerservice/home/hayato/compose/jenkins-deb/nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}
}
}

0 comments on commit 8582684

Please sign in to comment.