From 41b27b31dc5cc975eefa8b463cd9cb6a29f2375a Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 12:19:52 +0200 Subject: [PATCH] GlobaLeaks (#7707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com> --- ct/globaleaks.sh | 43 ++++++++++++++++++++++++++++ ct/headers/globaleaks | 6 ++++ frontend/public/json/globaleaks.json | 35 ++++++++++++++++++++++ install/globaleaks-install.sh | 30 +++++++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 ct/globaleaks.sh create mode 100644 ct/headers/globaleaks create mode 100644 frontend/public/json/globaleaks.json create mode 100644 install/globaleaks-install.sh diff --git a/ct/globaleaks.sh b/ct/globaleaks.sh new file mode 100644 index 000000000..9e37447b8 --- /dev/null +++ b/ct/globaleaks.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2025 communtiy-scripts ORG +# Author: Giovanni Pellerano (evilaliv3) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/globaleaks/globaleaks-whistleblowing-software + +APP="GlobaLeaks" +var_tags="${var_tags:-whistleblowing-software}" +var_disk="${var_disk:-4}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -f /usr/sbin/globaleaks ]]; then + msg_error "No ${APP} installation found!" + exit + fi + + msg_info "Updating $APP LXC" + $STD apt update + $STD apt -y upgrade + msg_ok "Updated $APP LXC" +} + +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 "${TAB}${GATEWAY}${BGN}https://${IP}${CL}" diff --git a/ct/headers/globaleaks b/ct/headers/globaleaks new file mode 100644 index 000000000..b54d1871c --- /dev/null +++ b/ct/headers/globaleaks @@ -0,0 +1,6 @@ + ________ __ __ __ + / ____/ /___ / /_ ____ _/ / ___ ____ _/ /_______ + / / __/ / __ \/ __ \/ __ `/ / / _ \/ __ `/ //_/ ___/ +/ /_/ / / /_/ / /_/ / /_/ / /___/ __/ /_/ / ,< (__ ) +\____/_/\____/_.___/\__,_/_____/\___/\__,_/_/|_/____/ + diff --git a/frontend/public/json/globaleaks.json b/frontend/public/json/globaleaks.json new file mode 100644 index 000000000..ec1b0bc95 --- /dev/null +++ b/frontend/public/json/globaleaks.json @@ -0,0 +1,35 @@ +{ + "name": "GlobaLeaks", + "slug": "globaleaks", + "categories": [ + 0 + ], + "date_created": "2025-09-10", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 443, + "documentation": "https://docs.globaleaks.org", + "website": "https://www.globaleaks.org/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/globaleaks.webp", + "config_path": "", + "description": "GlobaLeaks is a free and open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.", + "install_methods": [ + { + "type": "default", + "script": "ct/globaleaks.sh", + "resources": { + "cpu": 2, + "ram": 1024, + "hdd": 4, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] +} diff --git a/install/globaleaks-install.sh b/install/globaleaks-install.sh new file mode 100644 index 000000000..c38409cb2 --- /dev/null +++ b/install/globaleaks-install.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash +# Copyright (c) 2021-2025 community-scripts ORG +# Author: Giovanni Pellerano (evilaliv3) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/globaleaks/globaleaks-whistleblowing-software + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Setup GlobaLeaks" +DISTRO_CODENAME="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)" +curl -fsSL https://deb.globaleaks.org/globaleaks.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/globaleaks.gpg +echo "deb [signed-by=/etc/apt/trusted.gpg.d/globaleaks.gpg] http://deb.globaleaks.org $DISTRO_CODENAME/" >/etc/apt/sources.list.d/globaleaks.list +echo -ne 'APPARMOR_SANDBOXING=0\nNETWORK_SANDBOXING=0' >/etc/default/globaleaks +$STD apt update +$STD apt -y install globaleaks +msg_ok "Setup GlobaLeaks" + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"