Application via HTTPS support - Adding SSL setup and automated test (#3247) (#3252)

This commit is contained in:
dgtlmoon
2025-06-11 09:44:58 +02:00
committed by GitHub
parent c7374245e1
commit 36004cf74b
3 changed files with 36 additions and 6 deletions
@@ -179,6 +179,17 @@ jobs:
docker kill test-changedetectionio
- name: Test HTTPS SSL mode
run: |
openssl req -x509 -newkey rsa:4096 -keyout privkey.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost"
docker run --name test-changedetectionio-ssl --rm -e SSL_CERT_FILE=cert.pem -e SSL_PRIVKEY_FILE=privkey.pem -p 5000:5000 -v ./cert.pem:/app/cert.pem -v ./privkey.pem:/app/privkey.pem -d test-changedetectionio
sleep 3
# Should return 0 (no error) when grep finds it
# -k because its self-signed
curl --retry-connrefused --retry 6 -k https://localhost:5000 -v|grep -q checkbox-uuid
docker kill test-changedetectionio-ssl
- name: Test changedetection.io SIGTERM and SIGINT signal shutdown
run: |