Skip to content

Commit 2695e2d

Browse files
authored
Website: re-add documenso & some little bugfixes (#4456)
1 parent 7aea030 commit 2695e2d

File tree

3 files changed

+41
-17
lines changed

3 files changed

+41
-17
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Documenso",
3+
"slug": "documenso",
4+
"categories": [
5+
12
6+
],
7+
"date_created": "2025-04-28",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 3000,
12+
"documentation": "https://documenso.com/",
13+
"website": "https://documenso.com/",
14+
"logo": "https://raw.githubusercontent.com/selfhst/icons/refs/heads/main/svg/documenso.svg",
15+
"config_path": "/opt/documenso/.env",
16+
"description": "Signing documents digitally should be fast and easy and should be the best practice for every document signed worldwide. This is technically quite easy today, but it also introduces a new party to every signature: The signing tool providers. While this is not a problem in itself, it should make us think about how we want these providers of trust to work. Documenso aims to be the world's most trusted document-signing tool. This trust is built by empowering you to self-host Documenso and review how it works under the hood.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/documenso.sh",
21+
"resources": {
22+
"cpu": 4,
23+
"ram": 6144,
24+
"hdd": 10,
25+
"os": "Debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": "[email protected]",
32+
"password": "helper-scripts"
33+
},
34+
"notes": []
35+
}

install/documenso-install.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,16 @@ msg_ok "Setup Functions"
2020

2121
msg_info "Installing Dependencies"
2222
$STD apt-get install -y \
23-
gpg \
2423
libc6 \
2524
make \
2625
cmake \
2726
jq \
28-
postgresql \
2927
python3 \
3028
python3-bcrypt
3129
msg_ok "Installed Dependencies"
3230

33-
msg_info "Setting up Node.js Repository"
34-
mkdir -p /etc/apt/keyrings
35-
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
36-
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
37-
msg_ok "Set up Node.js Repository"
38-
39-
msg_info "Installing Node.js"
40-
$STD apt-get update
41-
$STD apt-get install -y nodejs
42-
$STD npm install -g [email protected]
43-
msg_ok "Installed Node.js"
31+
NODE_VERSION="22" NODE_MODULE="[email protected]" install_node_and_modules
32+
PG_VERSION="16" install_postgresql
4433

4534
msg_info "Setting up PostgreSQL"
4635
DB_NAME="documenso_db"
@@ -90,7 +79,7 @@ msg_ok "Installed Documenso"
9079

9180
msg_info "Create User"
9281
PASSWORD_HASH=$(python3 -c "import bcrypt; print(bcrypt.hashpw(b'helper-scripts', bcrypt.gensalt(rounds=12)).decode())")
93-
sudo -u postgres psql -d documenso_db -c "INSERT INTO \"User\" (name, email, \"emailVerified\", password, \"identityProvider\", roles, \"createdAt\", \"lastSignedIn\", \"updatedAt\", \"customerId\") VALUES ('helper-scripts', '[email protected]', '2025-01-20 17:14:45.058', '$PASSWORD_HASH', 'DOCUMENSO', ARRAY['USER', 'ADMIN']::\"Role\"[], '2025-01-20 16:04:05.543', '2025-01-20 16:14:55.249', '2025-01-20 16:14:55.25', NULL) RETURNING id;"
82+
$STD sudo -u postgres psql -d documenso_db -c "INSERT INTO \"User\" (name, email, \"emailVerified\", password, \"identityProvider\", roles, \"createdAt\", \"lastSignedIn\", \"updatedAt\", \"customerId\") VALUES ('helper-scripts', '[email protected]', '2025-01-20 17:14:45.058', '$PASSWORD_HASH', 'DOCUMENSO', ARRAY['USER', 'ADMIN']::\"Role\"[], '2025-01-20 16:04:05.543', '2025-01-20 16:14:55.249', '2025-01-20 16:14:55.25', NULL) RETURNING id;"
9483
$STD npm run prisma:migrate-deploy
9584
msg_ok "User created"
9685

misc/tools.func

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ setup_local_ip_helper() {
689689

690690
# Install networkd-dispatcher if not present
691691
if ! dpkg -s networkd-dispatcher >/dev/null 2>&1; then
692-
apt-get update -qq
693-
apt-get install -yq networkd-dispatcher
692+
$STD apt-get update -qq
693+
$STD apt-get install -yq networkd-dispatcher
694694
fi
695695

696696
# Write update_local_ip.sh
@@ -746,7 +746,7 @@ $SCRIPT_PATH
746746
EOF
747747

748748
chmod +x "$DISPATCHER_SCRIPT"
749-
systemctl enable --now networkd-dispatcher.service
749+
systemctl enable -q --now networkd-dispatcher.service
750750

751751
$STD msg_ok "LOCAL_IP helper installed using networkd-dispatcher"
752752
}

0 commit comments

Comments
 (0)