summarylogtreecommitdiffstats
path: root/appflowy-cloud@.service
blob: 95541b3fe167bba84fdced6155899f574b6c7b31 (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
32
33
34
35
36
37
[Unit]
Description=Note, project and knowledge management (using %i.conf)
Documentation=https://github.com/AppFlowy-IO/AppFlowy-Cloud
After=network-online.target

[Service]
User=appflowy
Group=appflowy
EnvironmentFile=/etc/appflowy/%i.env
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectKernelTunables=true
ProtectHostname=true
ProtectClock=true
ProtectControlGroups=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
NoNewPrivileges=true
PrivateDevices=true
DeviceAllow=/dev/syslog
RestrictSUIDSGID=true
ProtectKernelModules=true
MemoryDenyWriteExecute=true
RestrictNamespaces=true
RestrictRealtime=true
LockPersonality=true
TimeoutStopSec=7s
KillMode=mixed
KillSignal=SIGTERM
Restart=on-failure
RestartPreventExitStatus=2
ExecStartPre=/usr/bin/sqlx database create
ExecStartPre=/usr/bin/sqlx migrate run --source /usr/share/appflowy-cloud/migrations
ExecStart=/usr/bin/appflowy-cloud

[Install]
WantedBy=multi-user.target