diff --git a/ct/casdoor.sh b/ct/casdoor.sh deleted file mode 100644 index e2396d58c6..0000000000 --- a/ct/casdoor.sh +++ /dev/null @@ -1,57 +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/casdoor/casdoor - -APP="Casdoor" -var_tags="${var_tags:-auth;sso;iam}" -var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-1024}" -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}" - -header_info "$APP" -variables -color -catch_errors - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /opt/casdoor ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - if check_for_gh_release "casdoor" "casdoor/casdoor"; then - msg_info "Stopping Casdoor" - systemctl stop casdoor - msg_ok "Stopped Casdoor" - - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "casdoor" "casdoor/casdoor" "prebuild" "latest" "/opt/casdoor" "casdoor_Linux_$(arch_resolve "x86_64" "arm64").tar.gz" - - msg_info "Starting Casdoor" - systemctl start casdoor - msg_ok "Started Casdoor" - 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}:8000${CL}" diff --git a/install/casdoor-install.sh b/install/casdoor-install.sh deleted file mode 100644 index aa22fdbaeb..0000000000 --- a/install/casdoor-install.sh +++ /dev/null @@ -1,94 +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/casdoor/casdoor - -source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" -color -verb_ip6 -catch_errors -setting_up_container -network_check -update_os - -PG_VERSION="17" setup_postgresql -PG_DB_NAME="casdoor" PG_DB_USER="casdoor" setup_postgresql_db - -fetch_and_deploy_gh_release "casdoor" "casdoor/casdoor" "prebuild" "latest" "/opt/casdoor" "casdoor_Linux_$(arch_resolve "x86_64" "arm64").tar.gz" - -msg_info "Configuring Casdoor" -mkdir -p /opt/casdoor_data/conf -cat </opt/casdoor_data/conf/app.conf -appname = casdoor -httpport = 8000 -runmode = prod -copyrequestbody = true -driverName = postgres -dataSourceName = user=casdoor password=${PG_DB_PASS} host=localhost port=5432 sslmode=disable dbname=casdoor -dbName = casdoor -tableNamePrefix = -showSql = false -redisEndpoint = -defaultStorageProvider = -isCloudIntranet = false -authState = "casdoor" -socks5Proxy = -verificationCodeTimeout = 10 -initScore = 0 -logPostOnly = true -isUsernameLowered = false -origin = http://${LOCAL_IP}:8000 -originFrontend = -staticBaseUrl = "https://cdn.casbin.org" -isDemoMode = false -batchSize = 100 -showGithubCorner = false -forceLanguage = "" -defaultLanguage = "en" -defaultApplication = "app-built-in" -maxItemsForFlatMenu = 7 -enableErrorMask = false -enableGzip = true -inactiveTimeoutMinutes = -ldapServerPort = 389 -ldapsCertId = "" -ldapsServerPort = 636 -radiusServerPort = 1812 -radiusDefaultOrganization = "built-in" -radiusSecret = "$(random_password)" -quota = {"organization": -1, "user": -1, "application": -1, "provider": -1} -logConfig = {"adapter":"console", "color":false} -initDataNewOnly = false -initDataFile = "./init_data.json" -frontendBaseDir = "/opt/casdoor/web/build" -EOF -chmod 600 /opt/casdoor_data/conf/app.conf -msg_ok "Configured Casdoor" - -msg_info "Creating Service" -# Casdoor resolves conf/app.conf, files/ (uploads) and tmp/ (sessions) against its working directory -cat </etc/systemd/system/casdoor.service -[Unit] -Description=Casdoor -After=network.target postgresql.service -Requires=postgresql.service - -[Service] -Type=simple -User=root -WorkingDirectory=/opt/casdoor_data -ExecStart=/opt/casdoor/casdoor -Restart=on-failure -RestartSec=5 - -[Install] -WantedBy=multi-user.target -EOF -systemctl enable -q --now casdoor -msg_ok "Created Service" - -motd_ssh -customize -cleanup_lxc diff --git a/json/casdoor.json b/json/casdoor.json deleted file mode 100644 index 38b0f23094..0000000000 --- a/json/casdoor.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "Casdoor", - "slug": "casdoor", - "categories": [ - 6 - ], - "date_created": "2026-10-05", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 8000, - "documentation": "https://casdoor.ai/docs/overview", - "website": "https://casdoor.ai/", - "repository": "https://github.com/casdoor/casdoor", - "architectures": [ - "amd64", - "arm64" - ], - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/casdoor.webp", - "description": "Casdoor is an open-source identity and access management (IAM) and single sign-on platform. It acts as an OAuth 2.0, OIDC, SAML and CAS provider with LDAP, RADIUS and SCIM endpoints, social logins, MFA and WebAuthn, and Casbin-based permissions.", - "install_methods": [ - { - "type": "default", - "script": "ct/casdoor.sh", - "config_path": "/opt/casdoor_data/conf/app.conf", - "resources": { - "cpu": 1, - "ram": 1024, - "hdd": 4, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "admin", - "password": "123" - }, - "notes": [ - { - "text": "The default admin login (organization built-in) is public and controls every user and application. Change the password right away under the user menu > My Account.", - "type": "warning" - }, - { - "text": "origin in /opt/casdoor_data/conf/app.conf is the OIDC issuer. Behind a reverse proxy or domain, change it before connecting applications and run systemctl restart casdoor.", - "type": "info" - }, - { - "text": "Casdoor also serves LDAP on port 389 and RADIUS on UDP port 1812. The RADIUS secret is radiusSecret in /opt/casdoor_data/conf/app.conf.", - "type": "info" - } - ] -}