Skip to content

Deploy hook: TLS certs not auto-deployed into container volume on certbot renew #829

Open
PasarGuard/scripts
#33

Description

@Ieqzya

Problem: The panel container mounts certs from /var/lib/pasarguard/certs/, but certbot renews into /etc/letsencrypt/live/. After renewal the container keeps serving the OLD cert until certs are copied manually and the container is restarted. Symptom: TLS handshake succeeds but HTTP responses come back empty (silent failure) - observed in production on 04.07.2026, panel appeared "down" while the port was open.

Suggested fix: ship a renewal deploy hook (or copy certs at container startup) so renewed certs propagate automatically.

Workaround we deployed on our host:

#!/bin/bash
set -e
cp /etc/letsencrypt/live/panel.sideprojectlog.com/{fullchain,privkey}.pem \
   /var/lib/pasarguard/certs/panel.sideprojectlog.com/
cd /opt/pasarguard && docker compose restart pasarguard

Thanks for the great project!

Activity

  1. dr-hoseyn commented on Sep 24, 2026

    @dr-hoseyn
    Contributor

    done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions