Bump Stoatchat RAM, limit cargo, remove xyops env
Increase Stoatchat default RAM from 8192 to 10240 in ct/stoatchat.sh and json/stoatchat.json. Add cargo -j 2 to backend builds in ct/stoatchat.sh and install/stoatchat-install.sh to limit parallel jobs. Remove two environment variables (XYOPS_xysat_local and XYOPS_masters) from install/xyops-install.sh service definition to avoid hardcoded local settings.
This commit is contained in:
@@ -8,7 +8,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
|
||||
APP="Stoatchat"
|
||||
var_tags="${var_tags:-chat;messaging;community}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-8192}"
|
||||
var_ram="${var_ram:-10240}"
|
||||
var_disk="${var_disk:-30}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
@@ -42,7 +42,7 @@ function update_script() {
|
||||
|
||||
msg_info "Rebuilding Backend (Patience)"
|
||||
cd /opt/stoatchat
|
||||
$STD cargo build --release --bins
|
||||
$STD cargo build --release --bins -j 2
|
||||
msg_ok "Rebuilt Backend"
|
||||
|
||||
msg_info "Updating Web Frontend"
|
||||
|
||||
@@ -39,7 +39,7 @@ fetch_and_deploy_gh_release "stoatchat" "stoatchat/stoatchat" "tarball"
|
||||
|
||||
msg_info "Building Backend (Patience)"
|
||||
cd /opt/stoatchat
|
||||
$STD cargo build --release --bins
|
||||
$STD cargo build --release --bins -j 2
|
||||
msg_ok "Built Backend"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
|
||||
@@ -56,8 +56,6 @@ Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/xyops
|
||||
Environment=XYOPS_foreground=1
|
||||
Environment=XYOPS_xysat_local=1
|
||||
Environment=XYOPS_masters=${LOCAL_IP}
|
||||
ExecStart=/usr/bin/node /opt/xyops/lib/main.js
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
"config_path": "/Revolt.toml",
|
||||
"resources": {
|
||||
"cpu": 4,
|
||||
"ram": 8192,
|
||||
"ram": 10240,
|
||||
"hdd": 30,
|
||||
"os": "Debian",
|
||||
"version": "13"
|
||||
|
||||
Reference in New Issue
Block a user