Skip to content

Commit

Permalink
chore: optionally disable access and error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
richardtreier committed Oct 12, 2023
1 parent 7eecb5f commit 1c7daa2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ EDC 0 compatible version (Connector UI only).
- `EDC_UI_MAINTAINER_URL`
- `EDC_UI_ASSET_PROP_ORIGINATOR_ORGANIZATION`
- `EDC_UI_ASSET_PROP_ORIGINATOR`
- New **optional** ENV Vars:
- `NGINX_ACCESS_LOG`, default: `/dev/stdout`
- `NGINX_ERROR_LOG`, default: `/dev/stderr`

## [v0.0.1-milestone-8-sovity12] 12.07.2023

Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ USER nginx:nginx

ENV NGINX_BIND="0.0.0.0"
ENV NGINX_PORT=8080
ENV NGINX_ACCESS_LOG=/dev/stdout
ENV NGINX_ERROR_LOG=/dev/stderr

HEALTHCHECK --interval=2s --timeout=5s --retries=10 \
CMD curl -f http://$NGINX_BIND:$NGINX_PORT/ || exit 1
4 changes: 2 additions & 2 deletions docker/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
access_log /dev/stdout;
error_log /dev/stderr;
access_log ${NGINX_ACCESS_LOG};
error_log ${NGINX_ERROR_LOG};
disable_symlinks if_not_owner;

server {
Expand Down

0 comments on commit 1c7daa2

Please sign in to comment.