add ldap
This commit is contained in:
@@ -35,6 +35,7 @@ fetch_and_deploy_gh_release "fleet" "fleetdm/fleet" "prebuild" "latest" "/opt/fl
|
||||
msg_info "Configuring Application"
|
||||
chmod +x /opt/fleet/fleet
|
||||
JWT_KEY=$(openssl rand -base64 32)
|
||||
PRIVATE_KEY=$(openssl rand -base64 32)
|
||||
cat <<EOF >/opt/fleet/.env
|
||||
FLEET_MYSQL_ADDRESS=127.0.0.1:3306
|
||||
FLEET_MYSQL_DATABASE=fleet
|
||||
@@ -42,6 +43,7 @@ FLEET_MYSQL_USERNAME=fleet
|
||||
FLEET_MYSQL_PASSWORD=${FLEET_DB_PASS}
|
||||
FLEET_SERVER_ADDRESS=0.0.0.0:8080
|
||||
FLEET_SERVER_TLS=false
|
||||
FLEET_SERVER_PRIVATE_KEY=${PRIVATE_KEY}
|
||||
FLEET_AUTH_JWT_KEY=${JWT_KEY}
|
||||
FLEET_REDIS_ADDRESS=127.0.0.1:6379
|
||||
FLEET_LOGGING_JSON=true
|
||||
@@ -50,7 +52,7 @@ msg_ok "Configured Application"
|
||||
|
||||
msg_info "Running Database Migrations"
|
||||
set -a && source /opt/fleet/.env && set +a
|
||||
$STD /opt/fleet/fleet prepare db
|
||||
$STD /opt/fleet/fleet prepare db --no-prompt
|
||||
msg_ok "Ran Database Migrations"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
@@ -21,7 +21,7 @@ msg_ok "Installed Dependencies"
|
||||
|
||||
PG_VERSION="16" setup_postgresql
|
||||
PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db
|
||||
NODE_VERSION="20" NODE_MODULES="pnpm" setup_nodejs
|
||||
NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_tag "kan" "kanbn/kan"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ $STD apt install -y \
|
||||
jpegoptim
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="bcmath,exif,gd,intl,imagick,redis,zip,pdo_pgsql,pcntl,ldap" setup_php
|
||||
PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULES="bcmath,ldap,exif,gd,intl,imagick,redis,zip,pdo_pgsql,pcntl,ldap" setup_php
|
||||
|
||||
setup_ffmpeg
|
||||
setup_imagemagick
|
||||
@@ -45,9 +45,10 @@ sed -i "s|^DB_PORT=.*|DB_PORT=5432|" .env
|
||||
sed -i "s|^#\?DB_DATABASE=.*|DB_DATABASE=${PG_DB_NAME}|" .env
|
||||
sed -i "s|^DB_USERNAME=.*|DB_USERNAME=${PG_DB_USER}|" .env
|
||||
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=${PG_DB_PASS}|" .env
|
||||
mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache public/dist
|
||||
mkdir -p storage/framework/{cache,sessions,views} storage/logs bootstrap/cache public/dist public/uploads public/sym
|
||||
touch public/dist/user.css public/dist/custom.js
|
||||
chmod -R 775 storage bootstrap/cache public/dist
|
||||
chown -R www-data:www-data /opt/lychee
|
||||
chmod -R 775 storage bootstrap/cache public/dist public/uploads public/sym
|
||||
msg_ok "Configured Application"
|
||||
|
||||
msg_info "Running Database Migrations"
|
||||
@@ -65,9 +66,11 @@ cat <<EOF >/etc/caddy/Caddyfile
|
||||
encode gzip
|
||||
}
|
||||
EOF
|
||||
usermod -aG www-data caddy
|
||||
msg_ok "Configured Caddy"
|
||||
|
||||
systemctl enable -q --now php${PHP_VER}-fpm caddy
|
||||
systemctl enable -q --now php${PHP_VER}-fpm
|
||||
systemctl restart caddy
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
|
||||
@@ -19,7 +19,7 @@ $STD apt install -y \
|
||||
git
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
NODE_VERSION="22" setup_nodejs
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
|
||||
fetch_and_deploy_gh_release "puter" "HeyPuter/puter" "tarball"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user