[Unit]
Description=FreshRSS RSS Reader
After=network.target
Requires=network.target

[Service]
Type=simple
User={{ freshrss_sys_user }}
Group={{ freshrss_sys_group }}
WorkingDirectory={{ freshrss_install_path }}
ExecStart=/usr/bin/php -S 127.0.0.1:{{ freshrss_port }} -t {{ freshrss_install_path }}/p
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectSystem=strict
ProtectControlGroups=true
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ReadWritePaths={{ freshrss_install_path }}/data {{ freshrss_data_dir }} /var/lib/php/sessions
UMask=0027

[Install]
WantedBy=multi-user.target
