This commit is contained in:
Дмитрий Мамедов
2026-06-10 17:06:42 +03:00
parent f77389199c
commit c23cf1efdb
2 changed files with 10 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ Self-hosted SSO / OIDC-сервис — аналог Keycloak / Яндекс ID.
**Одна команда — установит Node.js 22, Docker, сам сервис и запустит:** **Одна команда — установит Node.js 22, Docker, сам сервис и запустит:**
```bash ```bash
curl -fsSL https://git.lendry.ru/lendry/sso-service/raw/branch/main/install.sh | bash curl -fsSL https://git.lendry.ru/lendry/sso-mvk/raw/branch/main/install.sh | bash
``` ```
Скрипт автоматически: Скрипт автоматически:
@@ -202,14 +202,14 @@ curl -fsSL https://git.lendry.ru/lendry/sso-mvk/raw/main/install.sh | bash
### Переменные окружения (опционально) ### Переменные окружения (опционально)
```bash ```bash
INSTALL_DIR=/opt/sso curl -fsSL https://git.lendry.ru/lendry/sso-service/raw/branch/main/install.sh | bash INSTALL_DIR=/opt/sso curl -fsSL https://git.lendry.ru/lendry/sso-mvk/raw/branch/main/install.sh | bash
``` ```
## Ручная установка ## Ручная установка
```bash ```bash
# 1. Клонировать # 1. Клонировать
git clone https://git.lendry.ru/lendry/sso-service.git git clone https://git.lendry.ru/lendry/sso-mvk.git
cd sso-service cd sso-service
# 2. Настроить окружение # 2. Настроить окружение
@@ -243,20 +243,20 @@ node dist/main
```bash ```bash
# 1. Создать репозиторий на https://git.lendry.ru → New repository # 1. Создать репозиторий на https://git.lendry.ru → New repository
# Название: sso-service (или любое другое) # Название: sso-mvk (или любое другое)
# Visibility: Public # Visibility: Public
# 2. Инициализировать git и запушить # 2. Инициализировать git и запушить
cd sso-service cd sso-mvk
git init git init
git add -A git add -A
git commit -m "Initial commit: SSO service (NestJS, Prisma 7, PostgreSQL)" git commit -m "Initial commit: SSO service (NestJS, Prisma 7, PostgreSQL)"
git branch -M main git branch -M main
git remote add origin https://git.lendry.ru/lendry/sso-service.git git remote add origin https://git.lendry.ru/lendry/sso-mvk.git
git push -u origin main git push -u origin main
# 3. Установка с любого сервера: # 3. Установка с любого сервера:
curl -fsSL https://git.lendry.ru/lendry/sso-service/raw/branch/main/install.sh | bash curl -fsSL https://git.lendry.ru/lendry/sso-mvk/raw/branch/main/install.sh | bash
``` ```
**Важно:** Перед пушем проверьте `install.sh``REPO="lendry/sso-service"` и `GIT_HOST="git.lendry.ru"` должны соответствовать вашему Gitea. **Важно:** Перед пушем проверьте `install.sh``REPO="lendry/sso-mvk"` и `GIT_HOST="git.lendry.ru"` должны соответствовать вашему Gitea.

View File

@@ -1,10 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
REPO="lendry/sso-service" REPO="lendry/sso-mvk"
GIT_HOST="git.lendry.ru" GIT_HOST="git.lendry.ru"
BRANCH="main" BRANCH="main"
INSTALL_DIR="${INSTALL_DIR:-$HOME/sso-service}" INSTALL_DIR="${INSTALL_DIR:-$HOME/sso-mvk}"
SKIP_PREREQS="${SKIP_PREREQS:-false}" SKIP_PREREQS="${SKIP_PREREQS:-false}"
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m' RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'