37 lines
1.2 KiB
SYSTEMD
37 lines
1.2 KiB
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=yavsc-Blogs
|
||
|
|
After=syslog.target
|
||
|
|
After=network.target
|
||
|
|
Wants=postgresql.service
|
||
|
|
After=postgresql.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
RestartSec=5s
|
||
|
|
Type=simple
|
||
|
|
User=yavsc
|
||
|
|
Group=yavsc
|
||
|
|
WorkingDirectory=/srv/www/yavsc
|
||
|
|
ExecStart=/srv/www/yavsc/Yavsc.Blogs
|
||
|
|
Restart=always
|
||
|
|
Environment="HOME="
|
||
|
|
Environment="ANTHROPIC_API_KEY=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"
|
||
|
|
Environment="ANTHROPIC_MAX_TOKENS=255"
|
||
|
|
Environment="ASPNETCORE_Environment="
|
||
|
|
Environment="ASPNETCORE_Kestrel__Endpoints__Http=http://localhost:Blogs_"
|
||
|
|
Environment="ASPNETCORE_ConnectionStrings__YavscConnection=Server=localhost;Port=5432;Database=yavsc;Username=yavsc;Password=4T/X+fOnE;"
|
||
|
|
|
||
|
|
Environment="ASPNETCORE_Smtp__Host=\"mercure.pschneider.f\""
|
||
|
|
Environment="ASPNETCORE_Smtp__Port=465"
|
||
|
|
Environment="ASPNETCORE_Smtp__SenderName=\"Paul Schneider\""
|
||
|
|
Environment="ASPNETCORE_Smtp__SenderEmail=\"paul@pschneider.fr\""
|
||
|
|
Environment="ASPNETCORE_Smtp__UserName=\"paul\""
|
||
|
|
Environment="ASPNETCORE_Smtp__Password=\"j\0Dsn5=t\""
|
||
|
|
|
||
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||
|
|
StandardOutput=syslog
|
||
|
|
StandardError=syslog
|
||
|
|
SyslogIdentifier=yavscBlogs
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|