From 7c63bbc6ae3200657790a65d97124ebe5e3177c8 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:21:10 +0330 Subject: [PATCH] Import deployment configuration: app/deploy/systemd/teknav-weekly-digest.service Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- app/deploy/systemd/teknav-weekly-digest.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/deploy/systemd/teknav-weekly-digest.service diff --git a/app/deploy/systemd/teknav-weekly-digest.service b/app/deploy/systemd/teknav-weekly-digest.service new file mode 100644 index 0000000..2caf01a --- /dev/null +++ b/app/deploy/systemd/teknav-weekly-digest.service @@ -0,0 +1,15 @@ +[Unit] +Description=Send Teknav weekly newsletter digest +After=postgresql.service redis-server.service + +[Service] +Type=oneshot +User=teknav +Group=teknav +WorkingDirectory=/opt/teknav/current/backend +EnvironmentFile=/etc/teknav/backend.env +ExecStart=/usr/bin/npm run newsletter:digest +NoNewPrivileges=true +PrivateTmp=true +ProtectSystem=full +ProtectHome=true