Recently Written · git

recentlywritten

my writings (done recently)

git clone https://github.com/equwal/recentlywritten

Log | Files | Refs


accounts/deploy/rw-accounts.service (705 bytes)

1 # systemd unit for the accounts service.
2 # Install:
3 #   GOOS=linux GOARCH=amd64 go build -o accounts .   (in accounts/)
4 #   copy the binary to /usr/local/bin/rw-accounts
5 #   copy this file to /etc/systemd/system/rw-accounts.service
6 #   systemctl daemon-reload && systemctl enable --now rw-accounts
7 [Unit]
8 Description=Recently Written accounts, email and private feeds
9 After=network-online.target
10 Wants=network-online.target
11 
12 [Service]
13 EnvironmentFile=/etc/rw-accounts.env
14 ExecStart=/usr/local/bin/rw-accounts
15 DynamicUser=yes
16 StateDirectory=rw-accounts
17 ReadOnlyPaths=/var/www/recentlywritten
18 ProtectSystem=strict
19 ProtectHome=yes
20 NoNewPrivileges=yes
21 Restart=on-failure
22 
23 [Install]
24 WantedBy=multi-user.target