feat: add managed ACME listener and log rotation
This commit is contained in:
+2
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user