Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
web-proxy-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
shore
web-proxy-docker
Commits
1923320c
Commit
1923320c
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
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
4 years ago
Stage: test
Stage: build
Stage: run
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+6
-0
6 additions, 0 deletions
Dockerfile
conf.d/www.shore.co.il.conf
+1
-1
1 addition, 1 deletion
conf.d/www.shore.co.il.conf
docker-compose.yml
+2
-0
2 additions, 0 deletions
docker-compose.yml
with
9 additions
and
1 deletion
Dockerfile
+
6
−
0
View file @
1923320c
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
This diff is collapsed.
Click to expand it.
conf.d/www.shore.co.il.conf
+
1
−
1
View file @
1923320c
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
2
−
0
View file @
1923320c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment