diff --git a/ct/hedgedoc.sh b/ct/hedgedoc.sh deleted file mode 100644 index 8c831b0129..0000000000 --- a/ct/hedgedoc.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" -source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/hedgedoc/hedgedoc - -APP="HedgeDoc" -var_tags="${var_tags:-notes;markdown}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" -var_disk="${var_disk:-8}" -var_os="${var_os:-debian}" -var_version="${var_version:-13}" -var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-1}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2319}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/hedgedoc ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "hedgedoc" "hedgedoc/hedgedoc"; then - msg_info "Stopping HedgeDoc" - systemctl stop hedgedoc - msg_ok "Stopped HedgeDoc" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hedgedoc" "hedgedoc/hedgedoc" "prebuild" "latest" "/opt/hedgedoc" "hedgedoc-*.tar.gz" - - msg_info "Installing HedgeDoc Dependencies" - cd /opt/hedgedoc - $STD yarn workspaces focus --production - msg_ok "Installed HedgeDoc Dependencies" - - msg_info "Starting HedgeDoc" - systemctl start hedgedoc - msg_ok "Started HedgeDoc" - msg_ok "Updated successfully!" - fi - 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}:3000${CL}" diff --git a/install/hedgedoc-install.sh b/install/hedgedoc-install.sh deleted file mode 100644 index 52e94eede7..0000000000 --- a/install/hedgedoc-install.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/raw/main/LICENSE -# Source: https://github.com/hedgedoc/hedgedoc - -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 \ - git \ - python3 -msg_ok "Installed Dependencies" - -PG_VERSION="18" setup_postgresql -PG_DB_NAME="hedgedoc" PG_DB_USER="hedgedoc" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs - -fetch_and_deploy_gh_release "hedgedoc" "hedgedoc/hedgedoc" "prebuild" "latest" "/opt/hedgedoc" "hedgedoc-*.tar.gz" - -msg_info "Installing HedgeDoc Dependencies" -cd /opt/hedgedoc -$STD yarn workspaces focus --production -msg_ok "Installed HedgeDoc Dependencies" - -msg_info "Configuring HedgeDoc" -mkdir -p /opt/hedgedoc_data/uploads -cat </opt/hedgedoc_data/config.json -{ - "production": { - "domain": "${LOCAL_IP}", - "urlAddPort": true, - "sessionSecret": "$(openssl rand -hex 64)", - "db": { - "dialect": "postgres", - "host": "localhost", - "port": 5432, - "database": "${PG_DB_NAME}", - "username": "${PG_DB_USER}", - "password": "${PG_DB_PASS}" - }, - "uploadsPath": "/opt/hedgedoc_data/uploads", - "allowAnonymous": false, - "allowAnonymousEdits": true, - "enableStatsApi": false - } -} -EOF -chmod 600 /opt/hedgedoc_data/config.json -msg_ok "Configured HedgeDoc" - -msg_info "Creating Service" -cat </etc/systemd/system/hedgedoc.service -[Unit] -Description=HedgeDoc -After=network.target postgresql.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/hedgedoc -Environment=NODE_ENV=production -Environment=CMD_CONFIG_FILE=/opt/hedgedoc_data/config.json -ExecStart=/usr/bin/node app.js -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now hedgedoc -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/hedgedoc.json b/json/hedgedoc.json deleted file mode 100644 index afc4637c8f..0000000000 --- a/json/hedgedoc.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "HedgeDoc", - "slug": "hedgedoc", - "categories": [ - 12 - ], - "date_created": "2026-09-27", - "type": "ct", - "platforms": ["pve"], - "updateable": true, - "privileged": false, - "architectures": [ - "amd64", - "arm64" - ], - "interface_port": 3000, - "documentation": "https://docs.hedgedoc.org/", - "website": "https://hedgedoc.org/", - "repository": "https://github.com/hedgedoc/hedgedoc", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/hedgedoc.webp", - "description": "HedgeDoc (formerly CodiMD) is a self-hosted, real-time collaborative Markdown editor. Several people can write the same note at once in the browser, with support for diagrams, math, slide presentations and per-note sharing permissions.", - "install_methods": [ - { - "type": "default", - "script": "ct/hedgedoc.sh", - "config_path": "/opt/hedgedoc_data/config.json", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 8, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": null, - "password": null - }, - "notes": [ - { - "text": "There is no default account. Register the first user under Sign In with an email address and password.", - "type": "info" - }, - { - "text": "Anyone who reaches the instance can register. Once your accounts exist, set \"allowEmailRegister\": false in /opt/hedgedoc_data/config.json and run systemctl restart hedgedoc.", - "type": "warning" - }, - { - "text": "Behind a reverse proxy, set domain to your hostname, urlAddPort to false and protocolUseSSL to true in config.json, then restart hedgedoc. Otherwise the page loads without scripts.", - "type": "warning" - } - ] -}