Loading Dockerfile +6 −0 Original line number Diff line number Diff line FROM nginx:1.19-alpine ARG TRANSMISSION # hadolint ignore=DL3018 RUN rm -rf /etc/nginx/conf./* && \ chmod 777 /run && \ Loading @@ -24,6 +25,11 @@ RUN rm -rf /etc/nginx/conf./* && \ COPY www/ /var/www/ COPY conf.d/ /etc/nginx/conf.d/ COPY snippets/ /etc/nginx/snippets/ # Another option would be to copy the file to the template directory and have # the environment variable substitution happen in runtime, but that way would # miss checking the syntax during the build process. # hadolint ignore=SC2097,SC2098 RUN TRANSMISSION=$TRANSMISSION sed -i "s/TRANSMISSION/$TRANSMISSION/" /etc/nginx/conf.d/www.shore.co.il.conf USER nginx RUN nginx -t HEALTHCHECK CMD curl --fail --verbose --user-agent 'Docker health check' http://localhost/ || exit 1 conf.d/www.shore.co.il.conf +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ server { proxy_buffering off; } location /d16ebf5287f85724083b0e20a9c300f3/ { location /TRANSMISSION/ { proxy_pass http://kodi.shore.co.il:9091/; proxy_http_version 1.1; include snippets/proxy-headers.conf; Loading docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ version: '3.5' services: proxy: build: args: TRANSMISSION: "${TRANSMISSION}" context: ./ #command: ["nginx", "-g", "daemon off;"] hostname: &hostname www.shore.co.il Loading Loading
Dockerfile +6 −0 Original line number Diff line number Diff line FROM nginx:1.19-alpine ARG TRANSMISSION # hadolint ignore=DL3018 RUN rm -rf /etc/nginx/conf./* && \ chmod 777 /run && \ Loading @@ -24,6 +25,11 @@ RUN rm -rf /etc/nginx/conf./* && \ COPY www/ /var/www/ COPY conf.d/ /etc/nginx/conf.d/ COPY snippets/ /etc/nginx/snippets/ # Another option would be to copy the file to the template directory and have # the environment variable substitution happen in runtime, but that way would # miss checking the syntax during the build process. # hadolint ignore=SC2097,SC2098 RUN TRANSMISSION=$TRANSMISSION sed -i "s/TRANSMISSION/$TRANSMISSION/" /etc/nginx/conf.d/www.shore.co.il.conf USER nginx RUN nginx -t HEALTHCHECK CMD curl --fail --verbose --user-agent 'Docker health check' http://localhost/ || exit 1
conf.d/www.shore.co.il.conf +1 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ server { proxy_buffering off; } location /d16ebf5287f85724083b0e20a9c300f3/ { location /TRANSMISSION/ { proxy_pass http://kodi.shore.co.il:9091/; proxy_http_version 1.1; include snippets/proxy-headers.conf; Loading
docker-compose.yml +2 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,8 @@ version: '3.5' services: proxy: build: args: TRANSMISSION: "${TRANSMISSION}" context: ./ #command: ["nginx", "-g", "daemon off;"] hostname: &hostname www.shore.co.il Loading