✅ Fixed Web UI Service Port Configuration - Updated aitbc-web-ui.service to actually use port 8016 - Fixed Environment=PORT from 8007 to 8016 - Fixed ExecStart from 8007 to 8016 - Service now running on claimed port 8016 - Port 8007 properly released ✅ Configuration Changes - Before: Claimed port 8016, ran on port 8007 - After: Claims port 8016, runs on port 8016 - Service description now matches actual execution - Port mapping is now consistent ✅ Verification - Web UI service active and running on port 8016 - Port 8016 responding with HTML interface - Port 8007 no longer in use - All other services unchanged 🚀 Web UI service configuration is now consistent and correct!
39 lines
945 B
Desktop File
39 lines
945 B
Desktop File
[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/blockchain-explorer
|
|
Environment=PATH=/opt/aitbc/venv/bin:/usr/bin
|
|
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-explorer
|
|
Environment=PORT=8016
|
|
Environment=SERVICE_TYPE=web-ui
|
|
Environment=LOG_LEVEL=INFO
|
|
ExecStart=/opt/aitbc/venv/bin/python -m http.server 8016 --bind 127.0.0.1
|
|
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=/var/log/aitbc /var/lib/aitbc/data /opt/aitbc/venv
|
|
LimitNOFILE=65536
|
|
|
|
# Resource limits
|
|
MemoryMax=1G
|
|
CPUQuota=100%
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|