Skip to content

Commit

Permalink
add health check
Browse files Browse the repository at this point in the history
  • Loading branch information
zironycho committed Jul 7, 2020
1 parent 18c12b6 commit cf04f75
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# aws s3 proxy

### envs:
AWS_BUCKET={{your-bucket}}

### healthcheck:
curl http://localhost:8080/health
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ services:
- 8080:80
env_file:
- app.env
volumes:
- ./templates:/etc/nginx/templates
5 changes: 5 additions & 0 deletions templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
server {
listen 80;
charset utf-8;

location = /health {
add_header Content-Type text/plain;
return 200 "ok";
}

location / {
proxy_pass http://${AWS_BUCKET}.s3.amazonaws.com;
Expand Down

0 comments on commit cf04f75

Please sign in to comment.