Merge branch 'byparr' of https://github.com/luismco/ProxmoxVED into byparr
This commit is contained in:
commit
95c0fc2129
@ -1,9 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
<<<<<<< HEAD
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/misc/build.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/misc/build.func)
|
||||||
# Copyright (c) 2021-2025 community-scripts ORG
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
# Author: luismco
|
# Author: luismco
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
# Source: https://github.com/Lissy93/web-check
|
# Source: https://github.com/Lissy93/web-check
|
||||||
|
=======
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2025 community-scripts ORG
|
||||||
|
# Author: luismco
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/ThePhaseless/Byparr
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
|
|
||||||
APP="Byparr"
|
APP="Byparr"
|
||||||
var_tags="${var_tags:-proxy}"
|
var_tags="${var_tags:-proxy}"
|
||||||
|
|||||||
35
frontend/public/json/byparr.json
Normal file
35
frontend/public/json/byparr.json
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
"name": "Byparr",
|
||||||
|
"slug": "byparr",
|
||||||
|
"categories": [
|
||||||
|
14
|
||||||
|
],
|
||||||
|
"date_created": "2025-11-24",
|
||||||
|
"type": "ct",
|
||||||
|
"updateable": true,
|
||||||
|
"privileged": false,
|
||||||
|
"interface_port": 8191,
|
||||||
|
"documentation": "https://github.com/ThePhaseless/Byparr/blob/master/README.md",
|
||||||
|
"website": "https://github.com/ThePhaseless/Byparr",
|
||||||
|
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/byparr.webp",
|
||||||
|
"config_path": "",
|
||||||
|
"description": "Byparr is a proxy server to bypass Cloudflare and DDoS-GUARD protection.",
|
||||||
|
"install_methods": [
|
||||||
|
{
|
||||||
|
"type": "default",
|
||||||
|
"script": "ct/byparr.sh",
|
||||||
|
"resources": {
|
||||||
|
"cpu": 2,
|
||||||
|
"ram": 2048,
|
||||||
|
"hdd": 4,
|
||||||
|
"os": "debian",
|
||||||
|
"version": "13"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_credentials": {
|
||||||
|
"username": null,
|
||||||
|
"password": null
|
||||||
|
},
|
||||||
|
"notes": []
|
||||||
|
}
|
||||||
@ -13,6 +13,20 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt -y install \
|
||||||
|
xauth \
|
||||||
|
xvfb \
|
||||||
|
scrot \
|
||||||
|
curl \
|
||||||
|
chromium \
|
||||||
|
chromium-driver \
|
||||||
|
ca-certificates
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
fetch_and_deploy_gh_release "Byparr" "ThePhaseless/Byparr"
|
fetch_and_deploy_gh_release "Byparr" "ThePhaseless/Byparr"
|
||||||
|
|
||||||
setup_uv
|
setup_uv
|
||||||
@ -22,17 +36,34 @@ cat <<EOF >/etc/systemd/system/byparr.service
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Byparr
|
Description=Byparr
|
||||||
After=network.target
|
After=network.target
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/Byparr
|
WorkingDirectory=/opt/Byparr
|
||||||
ExecStart=/usr/local/bin/uv run python3 main.py
|
ExecStart=/usr/local/bin/uv run python3 main.py
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
<<<<<<< HEAD
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now byparr
|
systemctl enable -q --now byparr
|
||||||
|
=======
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
cleanup_lxc
|
||||||
|
|
||||||
|
systemctl enable -q --now byparr
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
|
|||||||
@ -2816,6 +2816,7 @@ EOF'
|
|||||||
install_ssh_keys_into_ct
|
install_ssh_keys_into_ct
|
||||||
|
|
||||||
# Run application installer
|
# Run application installer
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
# NOTE: We disable error handling here because:
|
# NOTE: We disable error handling here because:
|
||||||
# 1. Container errors are caught by error_handler INSIDE container
|
# 1. Container errors are caught by error_handler INSIDE container
|
||||||
@ -2862,6 +2863,11 @@ EOF'
|
|||||||
local build_log_copied=false
|
local build_log_copied=false
|
||||||
local install_log_copied=false
|
local install_log_copied=false
|
||||||
|
|
||||||
|
=======
|
||||||
|
if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/install/${var_install}.sh)"; then
|
||||||
|
local exit_code=$?
|
||||||
|
# Try to copy installation log from container before exiting
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
if [[ -n "$CTID" && -n "${SESSION_ID:-}" ]]; then
|
if [[ -n "$CTID" && -n "${SESSION_ID:-}" ]]; then
|
||||||
# Copy BUILD_LOG (creation log) if it exists
|
# Copy BUILD_LOG (creation log) if it exists
|
||||||
if [[ -f "${BUILD_LOG}" ]]; then
|
if [[ -f "${BUILD_LOG}" ]]; then
|
||||||
|
|||||||
@ -183,6 +183,7 @@ else
|
|||||||
echo -n "DIRECT"
|
echo -n "DIRECT"
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
||||||
fi
|
fi
|
||||||
@ -192,6 +193,8 @@ EOF
|
|||||||
msg_ok "Updated Container OS"
|
msg_ok "Updated Container OS"
|
||||||
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/tools.func)
|
source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/tools.func)
|
||||||
=======
|
=======
|
||||||
|
=======
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
chmod +x /usr/local/bin/apt-proxy-detect.sh
|
||||||
fi
|
fi
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
@ -199,7 +202,10 @@ EOF
|
|||||||
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
|
||||||
msg_ok "Updated Container OS"
|
msg_ok "Updated Container OS"
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/misc/tools.func)
|
source <(curl -fsSL https://raw.githubusercontent.com/luismco/ProxmoxVED/refs/heads/byparr/misc/tools.func)
|
||||||
|
<<<<<<< HEAD
|
||||||
>>>>>>> 1b856490 (Added install and ct files)
|
>>>>>>> 1b856490 (Added install and ct files)
|
||||||
|
=======
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
}
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@ -274,6 +280,7 @@ customize() {
|
|||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
ExecStart=-/sbin/agetty --autologin root --noclear --keep-baud tty%I 115200,38400,9600 \$TERM
|
||||||
EOF
|
EOF
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
@ -288,6 +295,8 @@ EOF
|
|||||||
chmod 600 /root/.ssh/authorized_keys
|
chmod 600 /root/.ssh/authorized_keys
|
||||||
fi
|
fi
|
||||||
=======
|
=======
|
||||||
|
=======
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||||
msg_ok "Customized Container"
|
msg_ok "Customized Container"
|
||||||
@ -300,5 +309,8 @@ EOF
|
|||||||
chmod 700 /root/.ssh
|
chmod 700 /root/.ssh
|
||||||
chmod 600 /root/.ssh/authorized_keys
|
chmod 600 /root/.ssh/authorized_keys
|
||||||
fi
|
fi
|
||||||
|
<<<<<<< HEAD
|
||||||
>>>>>>> 1b856490 (Added install and ct files)
|
>>>>>>> 1b856490 (Added install and ct files)
|
||||||
|
=======
|
||||||
|
>>>>>>> 705b0b3ed245a44466c93f68bc8f966962c11eee
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user