kd2org / karadav

Lightweight NextCloud compatible WebDAV server
https://fossil.kd2.org/karadav/
GNU Affero General Public License v3.0
155 stars 14 forks source link

Provide example systemd service file #8

Closed Tofee closed 2 years ago

Tofee commented 2 years ago

As a little complement to the docker-less target in the Makefile, I propose an example systemd service file to be used.

The only issue here is that -S 0.0.0.0 doesn't seem to work that well for me, I had to use the actual IP of my server to be able to access it from the outside. Might just be an issue on my side, as the dockerfile uses this syntax and is supposed to work well.

bohwaz commented 2 years ago

Thank you @Tofee for your PR. I changed it slightly to use /usr/bin/php instead of php8.1 (it is usually a symlink to the chosen PHP version), and to create 4 server workers instead of a single one, this should make things slightly faster.