Skip to content

Instantly share code, notes, and snippets.

@raghavmri
Created September 9, 2022 15:52
Show Gist options
  • Save raghavmri/037759257346fd3e35a2f59c96533363 to your computer and use it in GitHub Desktop.
Save raghavmri/037759257346fd3e35a2f59c96533363 to your computer and use it in GitHub Desktop.
[Unit]
Description = pocketbase
[Service]
Type = simple
User = YOUR_USER
Group = YOUR_GROUP
LimitNOFILE = 4096
Restart = always
RestartSec = 5s
StandardOutput = append:/your/path/to/logs/errors.log
StandardError = append:/your/path/to/logs/errors.log
ExecStart = /your/path/to/pocketbase serve --http="yourdomain.com:80" --https="yourdomain.com:443"
[Install]
WantedBy = multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment