Skip to content

Commit 698d5de

Browse files
committed
Added NGINX_PROXY_CONTAINER env var to letsencrypt container. Removed nginx error pages.
1 parent 02e5acb commit 698d5de

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

compose/proxy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- proxy_confd:/etc/nginx/conf.d
2929
- proxy_vhostd:/etc/nginx/vhost.d
3030
- ../volumes/certs:/etc/nginx/certs:ro
31-
- ../web/nginx:/usr/share/nginx/html:rw
31+
- proxy_html:/usr/share/nginx/html
3232
logging:
3333
driver: syslog
3434
options:
@@ -45,9 +45,9 @@ services:
4545
volumes:
4646
- proxy_confd:/etc/nginx/conf.d
4747
- proxy_vhostd:/etc/nginx/vhost.d
48+
- ../volumes/certs:/etc/nginx/certs:ro
4849
- /var/run/docker.sock:/tmp/docker.sock:ro
4950
- ../etc/nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
50-
- ../volumes/certs:/etc/nginx/certs:ro
5151
logging:
5252
driver: "json-file"
5353
options: { max-size: "1m", max-file: "3" }
@@ -57,6 +57,7 @@ services:
5757
image: jrcs/letsencrypt-nginx-proxy-companion
5858
restart: unless-stopped
5959
environment:
60+
NGINX_PROXY_CONTAINER: proxy_nginx
6061
NGINX_DOCKER_GEN_CONTAINER: proxy_generator
6162
networks:
6263
- proxy
@@ -65,7 +66,6 @@ services:
6566
- proxy_vhostd:/etc/nginx/vhost.d
6667
- /var/run/docker.sock:/var/run/docker.sock:ro
6768
- ../volumes/certs:/etc/nginx/certs:rw
68-
- ../web/nginx:/usr/share/nginx/html:rw
6969
logging:
7070
driver: "json-file"
7171
options: { max-size: "1m", max-file: "3" }

etc/nginx/nginx.conf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,5 @@ http {
4242

4343
recursive_error_pages on;
4444

45-
error_page 503 /503.html;
46-
location = /503.html {
47-
root /usr/share/nginx/html;
48-
internal;
49-
}
50-
5145
include /etc/nginx/conf.d/*.conf;
5246
}

0 commit comments

Comments
 (0)