-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix deployment and custom app settings
- Loading branch information
Showing
10 changed files
with
121 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM nginx:latest | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV PYTHONUNBUFFERED=1 | ||
ENV HTTPS_PROXY=http://172.20.0.252:3128 | ||
ENV HTTP_PROXY=http://172.20.0.252:3128 | ||
|
||
RUN apt-get update | ||
#RUN apt-get install -y openssl | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Etc/UTC | ||
|
||
RUN apt-get -y install tzdata | ||
RUN apt-get install -y iputils-ping | ||
RUN apt-get install -y wget | ||
|
||
COPY --chmod=755 docker-entrypoint.sh / | ||
ENTRYPOINT ["/docker-entrypoint.sh"] | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env sh | ||
if [ -e /etc/nginx/conf.d/default.conf.template ] | ||
then | ||
set -eu | ||
# ${HOST_EXTERNAL} ${WEBAPP_PORT_EXTERNAL} ${WEBAPP_EXTERNAL} ${QGIS_SERVER_EXTERNAL} | ||
#envsubst '${SITE_SUBPATH}' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf | ||
|
||
cat /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf | ||
|
||
cat /etc/nginx/conf.d/default.conf | ||
|
||
exec "$@" | ||
|
||
else | ||
echo "no template!" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.