Skip to content

Commit 32a254a

Browse files
authored
feat: change default doc root to /htdocs (#4)
* Update Dockerfile * Update default.conf * Update compose.yml
1 parent bdba279 commit 32a254a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ RUN mkdir -p /etc/nginx/includes
1111

1212
COPY --from=builder jira-to-github-redirects.conf /etc/nginx/includes/jira-to-github-redirects.conf
1313

14-
COPY docker/favicon.ico /usr/share/nginx/html/favicon.ico
14+
COPY docker/favicon.ico /htdocs/favicon.ico
1515
COPY docker/default.conf /etc/nginx/conf.d/default.conf
16-
COPY docker/index.html /usr/share/nginx/html/index.html
16+
COPY docker/index.html /htdocs/index.html

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ services:
55
ports:
66
- "8060:80"
77
volumes:
8-
- "./docker/index.html:/usr/share/nginx/html/index.html"
8+
- "./docker/index.html:/htdocs/index.html"

docker/default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ server {
22
listen 80;
33
server_name _ localhost;
44

5-
root /usr/share/nginx/html;
5+
root /htdocs;
66

77
include includes/jira-to-github-redirects.conf;
88
rewrite ^/issue/(.+) https://issues.jenkins.io/browse/JENKINS-$1 permanent;

0 commit comments

Comments
 (0)