Skip to content

Commit

Permalink
Added nginx base image docker-entrypoint.sh to entrypoint so it can r…
Browse files Browse the repository at this point in the history
…un docker-entrypoint.d scripts from base image to use nginx template files.

Remove default values for env variables in template file
  • Loading branch information
MarkCalvert committed Jan 22, 2024
1 parent ce56f27 commit 499d409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ ENTRYPOINT \
-keyout ${NGINX_DIR}/certs/ckan-local.key \
-out ${NGINX_DIR}/certs/ckan-local.crt \
-days 365 && \
nginx -g 'daemon off;'
/docker-entrypoint.sh nginx -g 'daemon off;'
2 changes: 1 addition & 1 deletion nginx/setup/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ server {
#access_log /var/log/nginx/host.access.log main;

location / {
proxy_pass http://${CKAN_CONTAINER_NAME:-ckan}:${CKAN_PORT:-5000}/;
proxy_pass http://${CKAN_CONTAINER_NAME}:${CKAN_PORT}/;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
#proxy_cache cache;
Expand Down

0 comments on commit 499d409

Please sign in to comment.