Rewrite .NET solar API in rust
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
[Unit]
|
||||
Description=The Electricity JSON API written in rust
|
||||
Description=The electricity JSON API written in rust
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/pi/project/home-data-collection-tools/target/release
|
||||
ExecStart=/home/pi/project/home-data-collection-tools/target/release/electricity_api --database-path /home/pi/logs/electricity.logs --listening-port 3002 --http-header-name-to-validate 'X-Real-IP' --http-header-value-to-validate 'IP_ADDR_V4_1,IP_ADDR_V4_2'
|
||||
ExecStart=/home/pi/project/home-data-collection-tools/target/release/electricity_api --database-path /home/pi/logs/electricity.db --listening-port 3002 --http-header-name-to-validate 'X-Real-IP' --http-header-value-to-validate 'IP_ADDR_V4_1,IP_ADDR_V4_2'
|
||||
Restart=on-abnormal
|
||||
RestartSec=30
|
||||
User=pi
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
[Unit]
|
||||
Description=A .NET Core application providing the Solar REST API
|
||||
Description=The solar JSON API written in rust
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=ASPNETCORE_URLS=http://*:3001
|
||||
WorkingDirectory=/home/pi
|
||||
ExecStart=/home/pi/.dotnet/dotnet /home/pi/bin/Solar.Api/Solar.Api.dll
|
||||
WorkingDirectory=/home/pi/project/home-data-collection-tools/target/release
|
||||
ExecStart=/home/pi/project/home-data-collection-tools/target/release/solar_api --database-path /home/pi/logs/solarpaneloutput.db --listening-port 3001
|
||||
Restart=on-abnormal
|
||||
RestartSec=30
|
||||
User=pi
|
||||
|
||||
Reference in New Issue
Block a user