Initial commit
This commit is contained in:
commit
680baa5e40
3 changed files with 61 additions and 0 deletions
50
docker-compose.yml
Normal file
50
docker-compose.yml
Normal file
|
|
@ -0,0 +1,50 @@
|
||||||
|
name: reverse
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
certs:
|
||||||
|
acme:
|
||||||
|
html:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy-tier:
|
||||||
|
|
||||||
|
services:
|
||||||
|
# proxy
|
||||||
|
reverse_proxy:
|
||||||
|
build: ./images/proxy
|
||||||
|
restart: always
|
||||||
|
labels:
|
||||||
|
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
|
||||||
|
volumes:
|
||||||
|
- certs:/etc/nginx/certs:ro
|
||||||
|
- ./vhost.d/:/etc/nginx/vhost.d:ro
|
||||||
|
- html:/usr/share/nginx/html
|
||||||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
networks:
|
||||||
|
- proxy-tier
|
||||||
|
environment:
|
||||||
|
- ENABLE_IPV6=true
|
||||||
|
- SHA1_UPSTREAM_NAME=true
|
||||||
|
- TRUST_DOWNSTREAM_PROXY=false
|
||||||
|
- RESOLVERS=8.8.8.8 8.8.4.4 [2001:4860:4860::8888] [2001:4860:4860::8844] valid=300s ipv6=on
|
||||||
|
|
||||||
|
# letsencrypt agent
|
||||||
|
letsencrypt-companion:
|
||||||
|
image: docker.io/nginxproxy/acme-companion
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- certs:/etc/nginx/certs
|
||||||
|
- acme:/etc/acme.sh
|
||||||
|
- ./vhost.d:/etc/nginx/vhost.d
|
||||||
|
- html:/usr/share/nginx/html
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
networks:
|
||||||
|
- proxy-tier
|
||||||
|
depends_on:
|
||||||
|
- reverse_proxy
|
||||||
|
environment:
|
||||||
|
#- ACME_CA_URI=https://acme-staging-v02.api.letsencrypt.org/directory # test-server
|
||||||
|
- DEFAULT_EMAIL=admin@uwu.email
|
||||||
3
images/proxy/Dockerfile
Normal file
3
images/proxy/Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
FROM nginxproxy/nginx-proxy:alpine
|
||||||
|
|
||||||
|
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
|
||||||
8
images/proxy/uploadsize.conf
Normal file
8
images/proxy/uploadsize.conf
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
client_max_body_size 10G;
|
||||||
|
proxy_read_timeout 3600;
|
||||||
|
proxy_request_buffering off;
|
||||||
|
#client_body_temp_path /tmp/ngx 1 2;
|
||||||
|
#proxy_buffering off;
|
||||||
|
proxy_connect_timeout 3600;
|
||||||
|
proxy_send_timeout 3600;
|
||||||
|
send_timeout 3600;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue