Skip to content
Snippets Groups Projects
Commit 1923320c authored by nimrod's avatar nimrod
Browse files

Remove secret from the repo.

Still, it will there in the image. That's fine with me.
parent de404162
No related branches found
No related tags found
No related merge requests found
Pipeline #168 passed
FROM nginx:1.19-alpine
ARG TRANSMISSION
# hadolint ignore=DL3018
RUN rm -rf /etc/nginx/conf./* && \
chmod 777 /run && \
......@@ -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
......@@ -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;
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment