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

View File

@@ -47,7 +47,7 @@ Self-hosted SSO / OIDC-сервис — аналог Keycloak / Яндекс ID.
**Одна команда — установит Node.js 22, Docker, сам сервис и запустит:**
```bash
curl -fsSL https://github.com/ssomvk/sso-service/raw/main/install.sh | bash
curl -fsSL https://git.lendry.ru/lendry/sso-service/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
INSTALL_DIR=/opt/sso curl -fsSL https://github.com/ssomvk/sso-service/raw/main/install.sh | bash
INSTALL_DIR=/opt/sso curl -fsSL https://git.lendry.ru/lendry/sso-service/raw/branch/main/install.sh | bash
```
## Ручная установка
```bash
# 1. Клонировать
git clone https://github.com/ssomvk/sso-service.git
git clone https://git.lendry.ru/lendry/sso-service.git
cd sso-service
# 2. Настроить окружение
@@ -239,10 +239,10 @@ node dist/main
Корректно обрабатывает X-Forwarded-For (TRUST_PROXY).
## Публикация на GitHub
## Публикация на Gitea
```bash
# 1. Создать репозиторий на github.com → New repository
# 1. Создать репозиторий на https://git.lendry.ru → New repository
# Название: sso-service (или любое другое)
# Visibility: Public
@@ -252,11 +252,11 @@ git init
git add -A
git commit -m "Initial commit: SSO service (NestJS, Prisma 7, PostgreSQL)"
git branch -M main
git remote add origin https://github.com/ВАШ_ЛОГИН/sso-service.git
git remote add origin https://git.lendry.ru/lendry/sso-service.git
git push -u origin main
# 3. Установка с любого сервера:
curl -fsSL https://github.com/ВАШ_ЛОГИН/sso-service/raw/main/install.sh | bash
curl -fsSL https://git.lendry.ru/lendry/sso-service/raw/branch/main/install.sh | bash
```
**Важно:** Перед пушем отредактируйте `install.sh` замените `REPO="ssomvk/sso-service"` на ваш репозиторий (строка 4).
**Важно:** Перед пушем проверьте `install.sh``REPO="lendry/sso-service"` и `GIT_HOST="git.lendry.ru"` должны соответствовать вашему Gitea.