Loading deploy/compose.tmpl.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ services: volumes: - acme-vol:/var/www/letsencrypt configs: - source: nginx-config target: /etc/nginx/nginx.conf - source: default-config target: /etc/nginx/conf.d/default.conf healthcheck: test: wget --spider -q http://localhost/nginx-health interval: ${HEALTHCHECK_INTERVAL:-30s} Loading Loading @@ -43,6 +43,6 @@ networks: external: true configs: nginx-config: name: ${NGINX_CONFIG_NAME:-nginx-proxy-http-config} file: ./config/nginx.conf default-config: name: ${DEFAULT_CONFIG_NAME:-nginx-proxy-http-default-config} file: ./config/default.conf deploy/config/default.conf 0 → 100644 +22 −0 Original line number Diff line number Diff line server { listen [::]:80 ipv6only=on; listen 80 default_server; access_log off; location ~ /\.well-known/acme-challenge/ { allow all; root /var/www/letsencrypt; try_files $uri =404; } location ~ /.* { return 301 https://$host$request_uri; } location = /nginx-health { access_log off; log_not_found off; return 204; } } deploy/config/nginx.confdeleted 100644 → 0 +0 −40 Original line number Diff line number Diff line user nginx; worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; multi_accept on; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log off; server { listen [::]:80 ipv6only=on; listen 80 default_server; charset utf-8; location ~ /\.well-known/acme-challenge/ { allow all; root /var/www/letsencrypt; try_files $uri =404; } location ~ /.* { return 301 https://$host$request_uri; } location = /nginx-health { access_log off; log_not_found off; return 204; } } } Loading
deploy/compose.tmpl.yaml +5 −5 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ services: volumes: - acme-vol:/var/www/letsencrypt configs: - source: nginx-config target: /etc/nginx/nginx.conf - source: default-config target: /etc/nginx/conf.d/default.conf healthcheck: test: wget --spider -q http://localhost/nginx-health interval: ${HEALTHCHECK_INTERVAL:-30s} Loading Loading @@ -43,6 +43,6 @@ networks: external: true configs: nginx-config: name: ${NGINX_CONFIG_NAME:-nginx-proxy-http-config} file: ./config/nginx.conf default-config: name: ${DEFAULT_CONFIG_NAME:-nginx-proxy-http-default-config} file: ./config/default.conf
deploy/config/default.conf 0 → 100644 +22 −0 Original line number Diff line number Diff line server { listen [::]:80 ipv6only=on; listen 80 default_server; access_log off; location ~ /\.well-known/acme-challenge/ { allow all; root /var/www/letsencrypt; try_files $uri =404; } location ~ /.* { return 301 https://$host$request_uri; } location = /nginx-health { access_log off; log_not_found off; return 204; } }
deploy/config/nginx.confdeleted 100644 → 0 +0 −40 Original line number Diff line number Diff line user nginx; worker_processes auto; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; multi_accept on; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log off; server { listen [::]:80 ipv6only=on; listen 80 default_server; charset utf-8; location ~ /\.well-known/acme-challenge/ { allow all; root /var/www/letsencrypt; try_files $uri =404; } location ~ /.* { return 301 https://$host$request_uri; } location = /nginx-health { access_log off; log_not_found off; return 204; } } }