feat: add managed ACME listener and log rotation

This commit is contained in:
chermack
2026-07-26 06:37:49 +08:00
parent 3cd9c2e9c8
commit 084577c910
5 changed files with 31 additions and 4 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ COPY trojan-master/asset/trojan-acme-challenge.service /etc/systemd/system/troja
COPY trojan-master/asset/trojan-acme-renew.service /etc/systemd/system/trojan-acme-renew.service
COPY trojan-master/asset/trojan-acme-renew.timer /etc/systemd/system/trojan-acme-renew.timer
COPY trojan-master/asset/renew-trojan-certificate /usr/local/sbin/renew-trojan-certificate
COPY trojan-master/asset/rotate-trojan-log /usr/local/sbin/rotate-trojan-log
COPY trojan-master/asset/compat-init /usr/local/sbin/compat-init
RUN chmod 0755 /usr/local/sbin/renew-trojan-certificate /usr/local/sbin/compat-init
RUN chmod 0755 /usr/local/sbin/renew-trojan-certificate /usr/local/sbin/rotate-trojan-log /usr/local/sbin/compat-init
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 CMD curl -fsS "http://127.0.0.1:${WEB_PORT:-8081}/healthz" || exit 1
CMD ["/usr/local/sbin/compat-init"]