Initial daily news digest web
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user