summarylogtreecommitdiffstats
path: root/akkoma.service
blob: 13e3964f0c99513fd51226dc73c2488e7fd4952b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[Unit]
Description=Akkoma social network
Wants=postgresql.service nginx.service
After=network.target postgresql.service nginx.service

[Service]
KillMode=process
Restart=on-failure

User=akkoma

Environment="PLEROMA_CONFIG_PATH=/etc/akkoma/config.exs"
Environment="HOME=/opt/akkoma"
WorkingDirectory=/opt/akkoma
ReadWritePaths=/opt/akkoma
StateDirectory=akkoma

ExecStart=/opt/akkoma/bin/pleroma start
ExecStop=/opt/akkoma/bin/pleroma stop

ExecSearchPath=/usr/bin:/usr/bin/vendor_perl

PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
PrivateDevices=true
NoNewPrivileges=true
CapabilityBoundingSet=~CAP_SYS_ADMIN

[Install]
WantedBy=multi-user.target