Compare commits

..

8 Commits

Author SHA1 Message Date
github-actions[bot] 340510c358 Update CHANGELOG.md 2026-08-10 10:02:40 +00:00
CanbiZ (MickLesk) b7bc9d7d06 ErsatzTV: update ffmpeg to 8.1 version (#16383) 2026-08-10 12:02:24 +02:00
community-scripts-pr-app[bot] 5a75054083 Update CHANGELOG.md (#16391)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-10 07:11:43 +00:00
community-scripts-pr-app[bot] c41d0149c4 Update CHANGELOG.md (#16390)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-10 07:11:23 +00:00
push-app-to-main[bot] a631eafe27 GitLab (#16386)
* Add gitlab (ct)

* Update script messages for GitLab installation

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-08-10 09:11:15 +02:00
push-app-to-main[bot] 45cfab02a9 TeslaMate (#16385)
* Add teslamate (ct)

* Fix source command for build.func in teslamate.sh

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-08-10 09:10:56 +02:00
community-scripts-pr-app[bot] 3c9540f491 Update CHANGELOG.md (#16389)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-10 07:08:03 +00:00
push-app-to-main[bot] 72e0ac5cf7 tor-snowflake (#15684)
* Add tor-snowflake (ct)

* Change default var_arm64 value from 'no' to 'yes'

* Remove empty line in tor-snowflake.sh

* Change to helper function

* Update tor-snowflake-install.sh

* Update tor-snowflake.sh

* license

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
Co-authored-by: michel.roegl-brunner@htl-braunau.at <michel.roegl-brunner@htl-braunau.at>
2026-08-10 09:07:32 +02:00
14 changed files with 455 additions and 83 deletions
+12
View File
@@ -523,6 +523,18 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-08-10 ## 2026-08-10
### 🆕 New Scripts
- GitLab ([#16386](https://github.com/community-scripts/ProxmoxVE/pull/16386))
- TeslaMate ([#16385](https://github.com/community-scripts/ProxmoxVE/pull/16385))
- tor-snowflake ([#15684](https://github.com/community-scripts/ProxmoxVE/pull/15684))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- ErsatzTV: update ffmpeg to 8.1 version [@MickLesk](https://github.com/MickLesk) ([#16383](https://github.com/community-scripts/ProxmoxVE/pull/16383))
### 🧰 Tools ### 🧰 Tools
- post-pdm-install ([#16368](https://github.com/community-scripts/ProxmoxVE/pull/16368)) - post-pdm-install ([#16368](https://github.com/community-scripts/ProxmoxVE/pull/16368))
+1 -1
View File
@@ -47,7 +47,7 @@ function update_script() {
systemctl stop ersatzTV systemctl stop ersatzTV
msg_ok "Stopped ErsatzTV" msg_ok "Stopped ErsatzTV"
fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-$(arch_resolve "linux64" "linuxarm64")-gpl-7.1.tar.xz" fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-$(arch_resolve "linux64" "linuxarm64")-gpl-8.1.tar.xz"
msg_info "Set ErsatzTV-ffmpeg links" msg_info "Set ErsatzTV-ffmpeg links"
chmod +x /opt/ErsatzTV-ffmpeg/bin/* chmod +x /opt/ErsatzTV-ffmpeg/bin/*
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://about.gitlab.com/
APP="GitLab"
var_tags="${var_tags:-git;devtools}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-8192}"
var_disk="${var_disk:-40}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/gitlab ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating GitLab (Patience)"
$STD apt update
$STD apt install -y gitlab-ce
msg_ok "Updated GitLab"
msg_info "Reconfiguring GitLab (Patience)"
$STD gitlab-ctl reconfigure
msg_ok "Reconfigured GitLab"
msg_ok "Updated successfully!"
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
echo -e "${INFO}${YW}The initial root password is valid for 24 hours:${CL}"
echo -e "${TAB}${DEFAULT}${BGN}cat /etc/gitlab/initial_root_password${CL}"
+6
View File
@@ -0,0 +1,6 @@
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
-6
View File
@@ -1,6 +0,0 @@
_____ __ __ __
/ ___// /_____ _/ / ______ ______/ /_
\__ \/ __/ __ `/ / | /| / / __ `/ ___/ __/
___/ / /_/ /_/ / /| |/ |/ / /_/ / / / /_
/____/\__/\__,_/_/ |__/|__/\__,_/_/ \__/
+6
View File
@@ -0,0 +1,6 @@
______ __ __ ___ __
/_ __/__ _____/ /___ _/ |/ /___ _/ /____
/ / / _ \/ ___/ / __ `/ /|_/ / __ `/ __/ _ \
/ / / __(__ ) / /_/ / / / / /_/ / /_/ __/
/_/ \___/____/_/\__,_/_/ /_/\__,_/\__/\___/
+6
View File
@@ -0,0 +1,6 @@
__ ______ __
/ /_____ _____ _________ ____ _ __/ __/ /___ _/ /_____
/ __/ __ \/ ___/_____/ ___/ __ \/ __ \ | /| / / /_/ / __ `/ //_/ _ \
/ /_/ /_/ / / /_____(__ ) / / / /_/ / |/ |/ / __/ / /_/ / ,< / __/
\__/\____/_/ /____/_/ /_/\____/|__/|__/_/ /_/\__,_/_/|_|\___/
+24 -13
View File
@@ -3,13 +3,13 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
# Copyright (c) 2021-2026 community-scripts ORG # Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ) # Author: MickLesk (CanbiZ)
# 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/stalwartlabs/stalwart # Source: https://github.com/teslamate-org/teslamate
APP="Stalwart" APP="TeslaMate"
var_tags="${var_tags:-mail;smtp;imap}" var_tags="${var_tags:-car;monitoring}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}" var_ram="${var_ram:-4096}"
var_disk="${var_disk:-20}" var_disk="${var_disk:-16}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-13}" var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified #var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
@@ -25,21 +25,32 @@ function update_script() {
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/stalwart ]]; then if [[ ! -d /opt/teslamate ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
if check_for_gh_release "stalwart" "stalwartlabs/stalwart"; then if check_for_gh_release "teslamate" "teslamate-org/teslamate"; then
msg_info "Stopping Service" msg_info "Stopping Service"
systemctl stop stalwart systemctl stop teslamate
msg_ok "Stopped Service" msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "stalwart" "stalwartlabs/stalwart" "prebuild" "latest" "/opt/stalwart" "stalwart-$(arch_resolve x86_64 aarch64)-unknown-linux-gnu.tar.gz" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "teslamate" "teslamate-org/teslamate" "tarball"
chmod +x /opt/stalwart/stalwart
msg_info "Building TeslaMate (Patience)"
cd /opt/teslamate
export MIX_ENV=prod
$STD mix local.hex --force
$STD mix local.rebar --force
$STD mix deps.get --only prod
$STD npm install --prefix ./assets
$STD npm run deploy --prefix ./assets
$STD mix do phx.digest, release --overwrite
msg_ok "Built TeslaMate"
msg_info "Starting Service" msg_info "Starting Service"
systemctl start stalwart systemctl start teslamate
systemctl restart grafana-server
msg_ok "Started Service" msg_ok "Started Service"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
fi fi
@@ -53,6 +64,6 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}" echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8080/admin${CL}" echo -e "${GATEWAY}${BGN}http://${IP}:4000${CL}"
echo -e "${INFO}${YW}The bootstrap admin password was printed to the service log:${CL}" echo -e "${INFO}${YW}Grafana dashboards (admin/admin):${CL}"
echo -e "${TAB}${DEFAULT}${BGN}journalctl -u stalwart | grep -A8 'bootstrap mode'${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
+64
View File
@@ -0,0 +1,64 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: KernelSailor
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://snowflake.torproject.org/
APP="tor-snowflake"
var_tags="${var_tags:-privacy;proxy;tor}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
var_nesting="${var_nesting:-0}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
msg_info "Updating Container OS"
$STD apt update
$STD apt upgrade -y
msg_ok "Updated Container OS"
if [[ ! -d /opt/tor-snowflake ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if GITLAB_URL="https://gitlab.torproject.org" check_for_gl_release "tor-snowflake" "tpo/anti-censorship/pluggable-transports/snowflake"; then
msg_info "Stopping Service"
systemctl stop snowflake-proxy
msg_ok "Stopped Service"
CLEAN_INSTALL=1 GITLAB_URL="https://gitlab.torproject.org" fetch_and_deploy_gl_release "tor-snowflake" "tpo/anti-censorship/pluggable-transports/snowflake" "tarball"
msg_info "Building Snowflake"
cd /opt/tor-snowflake/proxy
$STD go build -o snowflake-proxy .
msg_ok "Built Snowflake"
msg_info "Starting Service"
systemctl start snowflake-proxy
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
+1 -1
View File
@@ -15,7 +15,7 @@ update_os
setup_hwaccel setup_hwaccel
fetch_and_deploy_gh_release "ersatztv" "ErsatzTV/ErsatzTV" "prebuild" "latest" "/opt/ErsatzTV" "*linux-$(arch_resolve "x64" "arm64").tar.gz" fetch_and_deploy_gh_release "ersatztv" "ErsatzTV/ErsatzTV" "prebuild" "latest" "/opt/ErsatzTV" "*linux-$(arch_resolve "x64" "arm64").tar.gz"
fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-$(arch_resolve "linux64" "linuxarm64")-gpl-7.1.tar.xz" fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-$(arch_resolve "linux64" "linuxarm64")-gpl-8.1.tar.xz"
msg_info "Set ErsatzTV-ffmpeg links" msg_info "Set ErsatzTV-ffmpeg links"
chmod +x /opt/ErsatzTV-ffmpeg/bin/* chmod +x /opt/ErsatzTV-ffmpeg/bin/*
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://about.gitlab.com/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
openssh-server \
perl \
tzdata
msg_ok "Installed Dependencies"
setup_deb822_repo \
"gitlab-ce" \
"https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey" \
"https://packages.gitlab.com/gitlab/gitlab-ce/debian" \
"$(get_os_info codename)" \
"main"
msg_info "Configuring GitLab"
mkdir -p /etc/gitlab
cat <<EOF >/etc/gitlab/gitlab.rb
external_url 'http://${LOCAL_IP}'
# Omnibus runs 'sysctl -e --system' during reconfigure, which fails in an
# unprivileged LXC because most kernel keys are not writable.
package['modify_kernel_parameters'] = false
EOF
msg_ok "Configured GitLab"
msg_info "Installing GitLab CE (Patience)"
$STD apt install -y gitlab-ce
msg_ok "Installed GitLab CE"
msg_info "Reconfiguring GitLab (Patience)"
$STD gitlab-ctl reconfigure
msg_ok "Reconfigured GitLab"
motd_ssh
customize
cleanup_lxc
-62
View File
@@ -1,62 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/stalwartlabs/stalwart
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "stalwart" "stalwartlabs/stalwart" "prebuild" "latest" "/opt/stalwart" "stalwart-$(arch_resolve x86_64 aarch64)-unknown-linux-gnu.tar.gz"
chmod +x /opt/stalwart/stalwart
msg_info "Configuring Stalwart"
mkdir -p /opt/stalwart_data/{etc,data,logs}
cat <<EOF >/opt/stalwart_data/etc/stalwart.env
# Uncomment and edit an entry to override its default.
# Apply changes with: systemctl restart stalwart
#STALWART_HOSTNAME=mail.example.com
#STALWART_PUBLIC_URL=https://mail.example.com
#STALWART_RECOVERY_MODE=true
#STALWART_RECOVERY_ADMIN=admin:changeme
EOF
chmod 600 /opt/stalwart_data/etc/stalwart.env
msg_ok "Configured Stalwart"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/stalwart.service
[Unit]
Description=Stalwart Mail Server
Conflicts=postfix.service sendmail.service exim4.service
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/stalwart_data
EnvironmentFile=-/opt/stalwart_data/etc/stalwart.env
ExecStart=/opt/stalwart/stalwart --config=/opt/stalwart_data/etc/config.json
LimitNOFILE=65536
KillMode=process
KillSignal=SIGINT
Restart=on-failure
RestartSec=5
SyslogIdentifier=stalwart
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now stalwart
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+183
View File
@@ -0,0 +1,183 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/teslamate-org/teslamate
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
erlang \
erlang-dev \
erlang-syntax-tools \
elixir \
mosquitto \
locales
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
$STD locale-gen
systemctl enable -q --now mosquitto
msg_ok "Installed Dependencies"
PG_VERSION="17" setup_postgresql
PG_DB_NAME="teslamate" PG_DB_USER="teslamate" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
NODE_VERSION="22" setup_nodejs
setup_deb822_repo \
"grafana" \
"https://apt.grafana.com/gpg.key" \
"https://apt.grafana.com" \
"stable" \
"main"
msg_info "Installing Grafana"
$STD apt install -y grafana
msg_ok "Installed Grafana"
fetch_and_deploy_gh_release "teslamate" "teslamate-org/teslamate" "tarball"
msg_info "Building TeslaMate (Patience)"
cd /opt/teslamate
export MIX_ENV=prod
$STD mix local.hex --force
$STD mix local.rebar --force
$STD mix deps.get --only prod
$STD npm install --prefix ./assets
$STD npm run deploy --prefix ./assets
$STD mix do phx.digest, release --overwrite
msg_ok "Built TeslaMate"
msg_info "Configuring TeslaMate"
cat <<EOF >/opt/teslamate.env
HOME=/opt/teslamate
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
TZ=UTC
PORT=4000
ENCRYPTION_KEY=$(openssl rand -hex 32)
DATABASE_USER=teslamate
DATABASE_PASS=${PG_DB_PASS}
DATABASE_NAME=teslamate
DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
MQTT_HOST=127.0.0.1
EOF
chmod 600 /opt/teslamate.env
msg_ok "Configured TeslaMate"
msg_info "Provisioning Grafana"
mkdir -p /etc/grafana/provisioning/{datasources,dashboards}
cat <<EOF >/etc/grafana/provisioning/datasources/teslamate.yml
apiVersion: 1
datasources:
- name: TeslaMate
type: postgres
url: 127.0.0.1:5432
user: teslamate
access: proxy
isDefault: true
secureJsonData:
password: ${PG_DB_PASS}
jsonData:
postgresVersion: 1700
sslmode: disable
database: teslamate
version: 1
editable: true
EOF
cat <<EOF >/etc/grafana/provisioning/dashboards/teslamate.yml
apiVersion: 1
providers:
- name: "teslamate"
orgId: 1
folder: TeslaMate
folderUid: Nr4ofiDZk
type: file
disableDeletion: false
allowUiUpdates: true
updateIntervalSeconds: 86400
options:
path: /opt/teslamate/grafana/dashboards
foldersFromFilesStructure: false
- name: "teslamate_internal"
orgId: 1
folder: Internal
folderUid: Nr5ofiDZk
type: file
disableDeletion: false
allowUiUpdates: true
updateIntervalSeconds: 86400
options:
path: /opt/teslamate/grafana/dashboards/internal
- name: "teslamate_reports"
orgId: 1
folder: Reports
folderUid: Nr6ofiDZk
type: file
disableDeletion: false
allowUiUpdates: true
updateIntervalSeconds: 86400
options:
path: /opt/teslamate/grafana/dashboards/reports
EOF
cat <<EOF >/etc/grafana/grafana.ini
[analytics]
reporting_enabled = false
check_for_updates = false
check_for_plugin_updates = false
[security]
allow_embedding = true
disable_gravatar = true
[users]
allow_sign_up = false
[dashboards]
default_home_dashboard_path = /opt/teslamate/grafana/dashboards/internal/home.json
[date_formats]
use_browser_locale = true
EOF
systemctl enable -q --now grafana-server
msg_ok "Provisioned Grafana"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/teslamate.service
[Unit]
Description=TeslaMate
Wants=network-online.target
After=network-online.target postgresql.service mosquitto.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/teslamate
EnvironmentFile=/opt/teslamate.env
ExecStartPre=/opt/teslamate/_build/prod/rel/teslamate/bin/teslamate eval "TeslaMate.Release.migrate"
ExecStart=/opt/teslamate/_build/prod/rel/teslamate/bin/teslamate start
ExecStop=/opt/teslamate/_build/prod/rel/teslamate/bin/teslamate stop
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now teslamate
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: KernelSailor
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://snowflake.torproject.org/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
setup_go
msg_info "Building Snowflake"
GITLAB_URL="https://gitlab.torproject.org" fetch_and_deploy_gl_release "tor-snowflake" "tpo/anti-censorship/pluggable-transports/snowflake" "tarball"
cd /opt/tor-snowflake/proxy
$STD go build -o snowflake-proxy .
msg_ok "Built Snowflake Proxy"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/snowflake-proxy.service
[Unit]
Description=Snowflake Proxy Service
Documentation=https://snowflake.torproject.org/
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/tor-snowflake/proxy
ExecStart=/opt/tor-snowflake/proxy/snowflake-proxy -verbose -unsafe-logging
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now snowflake-proxy
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc