Commit 71d5ba6c authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Realiza chequeo de salud mediante HTTP

El anterior chequeo basado en HTTPS no era válido, salvo que se usase el
nombre de dominio público en lugar de consultar directamente en local
(lo cual puede fallar debido a factores externos).
parent 159a05d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ RUN apk add --no-cache \
EXPOSE 443

HEALTHCHECK --interval=30s --timeout=15s --start-period=1m --retries=10 \
	CMD wget --spider -q https://localhost/nginx-health \
	CMD wget --spider -q http://localhost/nginx-health \
		|| (count=$(ps aux | grep openssl | wc -l); [ ${count} -gt 1 ]) \
		|| exit 1

+11 −0
Original line number Diff line number Diff line
@@ -26,3 +26,14 @@ server {
		return 204;
	}
}

server {
	listen [::]:80 ipv6only=on;
	listen 80 default_server;

	location = /nginx-health {
		access_log off;
		log_not_found off;
		return 204;
	}
}