Dedy Martadinata S 2 rokov pred
rodič
commit
2884e0057e
3 zmenil súbory, kde vykonal 67 pridanie a 0 odobranie
  1. BIN
      images/lldap.png
  2. 46 0
      template/apps/lldap.json
  3. 21 0
      tools/install_lldap.sh

BIN
images/lldap.png


+ 46 - 0
template/apps/lldap.json

@@ -0,0 +1,46 @@
+{
+	"categories": [
+		"Tools",
+                "Productivity"
+	],
+	"description": "This project is a lightweight authentication server that provides an opinionated, simplified LDAP interface for authentication.",
+	"env": [
+		{
+			"default": "somesecretjwt",
+			"label": "LLDAP_JWT_SECRET",
+			"name": "LLDAP_JWT_SECRET"
+		},
+		{
+			"default": "someadminpassword",
+			"label": "LLDAP_LDAP_USER_PASS",
+			"name": "LLDAP_LDAP_USER_PASS"
+		},
+                {
+                        "default": "dc=example,dc=com",
+                        "label": "LLDAP_LDAP_BASE_DN",
+                        "name": "LLDAP_LDAP_BASE_DN"
+                }
+	],
+	"image_arm32": "nitnelave/lldap:stable-debian",
+	"image_arm64": "nitnelave/lldap:stable",
+	"image_amd64": "nitnelave/lldap:stable",
+	"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/lldap.png",
+	"name": "LLDAP",
+	"officialDoc": "https://github.com/nitnelave/lldap",
+        "preInstallScript": "install_lldap.sh",
+	"platform": "linux",
+	"ports": [
+		"3890:3890/tcp",
+                "17170:17170/tcp"
+	],
+	"restart_policy": "unless-stopped",
+	"title": "LLDAP",
+	"type": 1,
+	"volumes": [
+		{
+			"bind": "/portainer/Files/AppData/Config/lldap/data",
+			"container": "/data"
+		}
+	],
+	"webpage": "https://github.com/nitnelave/lldap"
+}

+ 21 - 0
tools/install_lldap.sh

@@ -0,0 +1,21 @@
+#!/bin/bash
+
+function error {
+  echo -e "\\e[91m$1\\e[39m"
+  exit 1
+}
+
+#function check_internet() {
+#  printf "Checking if you are online..."
+#  wget -q --spider http://github.com
+#  if [ $? -eq 0 ]; then
+#    echo "Online. Continuing."
+#  else
+#    error "Offline. Go connect to the internet then run the script again."
+#  fi
+#}
+
+check_internet
+
+echo "Creating directories..."
+sudo mkdir -p /portainer/Files/AppData/Config/lldap/data || error "Failed to create Maloja data directory!"