moonstream/moonstreamapi/deploy/moonstream.service

17 wiersze
491 B
INI
Czysty Zwykły widok Historia

2021-07-19 10:31:18 +00:00
[Unit]
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-06-06 11:40:25 +00:00
WorkingDirectory=/home/ubuntu/moonstream/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
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