Skip to content

Commit

Permalink
fix: nginx container logging is overly verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearRedeye committed Apr 7, 2024
1 parent 8c587ae commit a86e90c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
events {
worker_connections 1024;
}
http {
server {
include mime.types;

listen 80;

location / {
root /usr/share/nginx/html;
add_header Cache-Control 'no-store';
}
}
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

PROJECT := $(notdir $(CURDIR))
NODE_VERSION ?= hydrogen
NODE_VERSION ?= iron
NGINX_VERSION ?= alpine
PORT ?= 8080

Expand Down Expand Up @@ -106,4 +106,4 @@ watch:
# Target that builds and runs a debug instance of the project.
dev: debug
@echo "Starting '$(PROJECT)' on 'http://localhost:$(PORT)'..."
@docker run --rm --name $(PROJECT) -p $(PORT):80 -e NGINX_ENTRYPOINT_QUIET_LOGS=1 -v $(CURDIR)/dist/debug:/usr/share/nginx/html/:ro nginx:$(NGINX_VERSION)
@docker run --rm --name $(PROJECT) -p $(PORT):80 -e NGINX_ENTRYPOINT_QUIET_LOGS=1 -v '$(CURDIR)/.nginx/nginx.conf:/etc/nginx/nginx.conf:ro' -v $(CURDIR)/dist/debug:/usr/share/nginx/html/:ro nginx:$(NGINX_VERSION)

0 comments on commit a86e90c

Please sign in to comment.