PlotDirector.Website/Tools/Deployment/production/plotdirector-website.service

20 lines
595 B
Desktop File

[Unit]
Description=PlotDirector public website
After=network.target
[Service]
User=plotdirector-website
Group=plotdirector-website
WorkingDirectory=/srv/plotdirector-website/current
ExecStart=/usr/bin/dotnet /srv/plotdirector-website/current/PlotDirector.Website.dll
EnvironmentFile=/etc/plotdirector-website-production/website.env
StateDirectory=plotdirector-website
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/srv/plotdirector-website/shared/keys /var/lib/plotdirector-website
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target