32 lines
842 B
Desktop File
32 lines
842 B
Desktop File
[Unit]
|
|
Description=AtlasOS - Calypso API Service (Development)
|
|
Documentation=https://github.com/atlasos/calypso
|
|
After=network.target postgresql.service
|
|
Requires=postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
WorkingDirectory=/development/calypso/backend
|
|
ExecStart=/development/calypso/backend/bin/calypso-api -config /development/calypso/backend/config.yaml.example
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=append:/tmp/backend-api.log
|
|
StandardError=append:/tmp/backend-api.log
|
|
SyslogIdentifier=calypso-api
|
|
|
|
# Environment variables
|
|
Environment="CALYPSO_DB_PASSWORD=calypso123"
|
|
Environment="CALYPSO_JWT_SECRET=test-jwt-secret-key-minimum-32-characters-long"
|
|
Environment="CALYPSO_LOG_LEVEL=info"
|
|
Environment="CALYPSO_LOG_FORMAT=json"
|
|
|
|
# Resource limits
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|