Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zironycho committed Jul 7, 2020
0 parents commit 8aa0b0c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
app.env
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:1.19.0-alpine
COPY ./templates /etc/nginx/templates
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name := s3-proxy

build:
@docker build . -t ${name}

sh:
@docker run --rm -it ${name} sh

up:
@docker-compose up

down:
@docker-compose down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.7"

services:
proxy:
image: s3-proxy
ports:
- 8080:80
env_file:
- app.env
8 changes: 8 additions & 0 deletions templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server {
listen 80;
charset utf-8;

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

0 comments on commit 8aa0b0c

Please sign in to comment.