Initial daily news digest web

This commit is contained in:
wuyanwanwu
2026-08-09 17:43:21 +08:00
commit 8e735ece88
17 changed files with 1230 additions and 0 deletions
@@ -0,0 +1,21 @@
[Unit]
Description=Daily News Digest PostgreSQL SSH tunnel
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=YOUR_LINUX_USER
ExecStart=/usr/bin/ssh -N -T \
-i /etc/daily-news-digest/db-tunnel_ed25519 \
-o BatchMode=yes \
-o ExitOnForwardFailure=yes \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-L 127.0.0.1:15432:127.0.0.1:5432 \
YOUR_SSH_USER@YOUR_DB_SSH_HOST
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target