refactor: standardize systemd service port assignments and fix hardcoded paths
- Update blockchain RPC port from 8003 to 8006 - Update wallet service port from 8001 to 8002 - Update multimodal service port from 8002 to 8010 - Update modality optimization port from 8004 to 8012 - Update adaptive learning port from 8005 to 8013 - Update marketplace enhanced port from 8006 to 8014 - Update OpenClaw enhanced port from 8007 to 8015 - Update multimodal GPU port from 8010 to 8011 - Add port 8017 to geographic
This commit is contained in:
38
systemd/aitbc-web-ui.service
Normal file
38
systemd/aitbc-web-ui.service
Normal file
@@ -0,0 +1,38 @@
|
||||
[Unit]
|
||||
Description=AITBC Web UI Service (Port 8016)
|
||||
Documentation=https://docs.aitbc.bubuit.net
|
||||
After=network.target aitbc-coordinator-api.service
|
||||
Wants=aitbc-coordinator-api.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=aitbc
|
||||
Group=aitbc
|
||||
WorkingDirectory=/opt/aitbc/apps/explorer-web
|
||||
Environment=PATH=/opt/aitbc/apps/coordinator-api/.venv/bin
|
||||
Environment=PYTHONPATH=/opt/aitbc/apps/coordinator-api/src
|
||||
Environment=PORT=8016
|
||||
Environment=SERVICE_TYPE=web-ui
|
||||
Environment=LOG_LEVEL=INFO
|
||||
ExecStart=/opt/aitbc/apps/coordinator-api/.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8016
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=aitbc-web-ui
|
||||
|
||||
# Security settings
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/opt/aitbc/logs /opt/aitbc/data
|
||||
LimitNOFILE=65536
|
||||
|
||||
# Resource limits
|
||||
MemoryMax=1G
|
||||
CPUQuota=100%
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user