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
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ubuntu
|
|
|
|
Group=www-data
|
2021-07-29 13:52:32 +00:00
|
|
|
WorkingDirectory=/home/ubuntu/moonstream/backend
|
2021-07-28 09:40:21 +00:00
|
|
|
EnvironmentFile=/home/ubuntu/moonstream-secrets/app.env
|
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
|
2021-11-10 14:20:47 +00:00
|
|
|
SyslogIdentifier=moonstreamapi
|
2021-07-19 10:31:18 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|