Skip to content

Commit ba23b7d

Browse files
authored
Merge pull request #1427 from remz1337/pr-zitadel
Refactor Zitadel script to support Login V2
2 parents 1e63205 + 75f034b commit ba23b7d

3 files changed

Lines changed: 436 additions & 0 deletions

File tree

ct/zitadel.sh

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
3+
# Copyright (c) 2021-2026 community-scripts ORG
4+
# Author: dave-yap (dave-yap) | Co-author: remz1337
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://zitadel.com/
7+
8+
APP="Zitadel"
9+
var_tags="${var_tags:-identity-provider}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-6}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /etc/systemd/system/zitadel-api.service ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
31+
if check_for_gh_release "zitadel" "zitadel/zitadel"; then
32+
msg_info "Stopping Service"
33+
systemctl stop zitadel-api zitadel-login
34+
msg_ok "Stopped Service"
35+
36+
msg_info "Updating Zitadel"
37+
rm -f /opt/zitadel/*
38+
fetch_and_deploy_gh_release "zitadel" "zitadel/zitadel" "prebuild" "latest" "/opt/zitadel" "zitadel-linux-amd64.tar.gz"
39+
40+
rm -f /opt/login/*
41+
fetch_and_deploy_gh_release "login" "zitadel/zitadel" "prebuild" "latest" "/opt/login" "zitadel-login.tar.gz"
42+
43+
cd /opt/zitadel
44+
./zitadel setup --masterkeyFile /etc/zitadel/.masterkey --config /etc/zitadel/config.yaml --init-projections=true
45+
msg_ok "Updated Zitadel"
46+
47+
msg_info "Starting Service"
48+
systemctl start zitadel
49+
msg_ok "Started Service"
50+
msg_ok "Updated successfully!"
51+
fi
52+
exit
53+
}
54+
55+
start
56+
build_container
57+
description
58+
59+
msg_info "Setting Container to Normal Resources"
60+
pct set $CTID -memory 1024
61+
pct set $CTID -cores 1
62+
msg_ok "Set Container to Normal Resources"
63+
64+
msg_ok "Completed successfully!\n"
65+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
66+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
67+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8080/ui/console${CL}"
68+
echo -e "${INFO} All credentials are saved in: /etc/zitadel/INSTALLATION_INFO.txt${CL}"

frontend/public/json/zitadel.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "Zitadel",
3+
"slug": "zitadel",
4+
"categories": [
5+
6
6+
],
7+
"date_created": "2025-02-10",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 8080,
12+
"documentation": "https://zitadel.com/docs/guides/overview",
13+
"website": "https://zitadel.com",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zitadel.webp",
15+
"config_path": "/etc/zitadel/config.yaml",
16+
"description": "Zitadel is an open-source identity and access management (IAM) solution designed to provide secure authentication, authorization, and user management for modern applications and services. Built with a focus on flexibility, scalability, and security, Zitadel offers a comprehensive set of features for developers and organizations looking to implement robust identity management.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/zitadel.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 6,
25+
"os": "debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": "zitadel-admin@zitadel.localhost",
32+
"password": "Password1!"
33+
},
34+
"notes": [
35+
{
36+
"text": "Application credentials: `cat /etc/zitadel/INSTALLATION_INFO.txt`",
37+
"type": "info"
38+
},
39+
{
40+
"text": "Change the ExternalDomain value in `/etc/zitadel/config.yaml` to your domain/hostname/IP and run `bash zitadel-rerun.sh`",
41+
"type": "info"
42+
}
43+
]
44+
}

0 commit comments

Comments
 (0)