deploy: enable trusted HTTPS IP endpoint

This commit is contained in:
Codex Local
2026-08-26 10:04:01 +08:00
parent c3975babf1
commit ea90cac50c
6 changed files with 43 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Renew the data terminal cloud IP certificate
After=docker.service network-online.target
Requires=docker.service
[Service]
Type=oneshot
WorkingDirectory=/opt/data-terminal-cloud/current
ExecStart=/opt/certbot-5-runtime/bin/certbot renew --cert-name 121.41.46.238 --quiet --pre-hook "/usr/bin/docker compose -f compose.yaml -f deploy/server/compose.override.yaml --env-file deploy/server/.env stop gateway" --post-hook "/usr/bin/docker compose -f compose.yaml -f deploy/server/compose.override.yaml --env-file deploy/server/.env start gateway"