modify sonarqube

This commit is contained in:
2026-01-21 12:31:24 +00:00
parent 94e565257d
commit 7b7e171ca3
1725 changed files with 383274 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
[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

View File

@@ -0,0 +1,36 @@
[Unit]
Description=AtlasOS - Calypso API Service
Documentation=https://github.com/atlasos/calypso
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=calypso
Group=calypso
WorkingDirectory=/opt/calypso/backend
ExecStart=/opt/calypso/backend/bin/calypso-api -config /etc/calypso/config.yaml
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=calypso-api
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/calypso /var/log/calypso
# Resource limits
LimitNOFILE=65536
LimitNPROC=4096
# Environment
Environment="CALYPSO_LOG_LEVEL=info"
Environment="CALYPSO_LOG_FORMAT=json"
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,25 @@
[Unit]
Description=Calypso Stack Log Aggregator
Documentation=https://github.com/atlasos/calypso
After=network.target
Wants=calypso-api.service calypso-frontend.service
[Service]
Type=simple
# Run as root to access journald and write to /var/syslog
# Format: timestamp [service] message
ExecStart=/bin/bash -c '/usr/bin/journalctl -u calypso-api.service -u calypso-frontend.service -f --no-pager -o short-iso >> /var/syslog/calypso.log 2>&1'
Restart=always
RestartSec=5
# Security hardening
NoNewPrivileges=false
PrivateTmp=true
ReadWritePaths=/var/syslog
# Resource limits
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target