2021-07-19 10:31:18 +00:00
|
|
|
[Unit]
|
2021-11-10 14:20:47 +00:00
|
|
|
Description=moonstreamapi-service
|
2021-07-19 10:31:18 +00:00
|
|
|
After=network.target
|
2022-11-09 11:47:55 +00:00
|
|
|
StartLimitIntervalSec=300
|
|
|
|
StartLimitBurst=3
|
2021-07-19 10:31:18 +00:00
|
|
|
|
|
|
|
[Service]
|
2023-07-13 17:04:28 +00:00
|
|
|
WorkingDirectory=/home/ubuntu/api/moonstreamapi
|
2021-07-28 09:40:21 +00:00
|
|
|
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
2022-11-09 11:47:55 +00:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=15s
|
2021-12-14 15:45:20 +00:00
|
|
|
ExecStart=/home/ubuntu/moonstream-env/bin/uvicorn --proxy-headers --forwarded-allow-ips='127.0.0.1' --host 127.0.0.1 --port 7481 --workers 8 moonstreamapi.api:app
|
2022-11-09 11:47:55 +00:00
|
|
|
SyslogIdentifier=moonstream
|
2021-07-19 10:31:18 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|