mirror of
https://gitverse.ru/kpa39l/gotosocial.git
synced 2026-09-29 09:55:10 +00:00
feat(registration): open signups, 10/day limit; openspec: fix-apex-webfinger-and-registration
- docker-compose.yml: GTS_ACCOUNTS_REGISTRATION_OPEN=true, GTS_ACCOUNTS_REGISTRATION_DAILY_LIMIT=10 - openspec: proposal/specs/design/tasks for dynamic apex webfinger + registration + SMTP verify - verified: /api/v1/instance → registrations:true; apex webfinger → acct:kpa39l@dedinit.ru; SMTP test OK
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
## Context
|
||||
|
||||
- Инстанс: social.dedinit.ru (GtS 0.22.1, docker на bigbox), account-domain dedinit.ru.
|
||||
- Apex: dedinit.ru (Jino/Apache, доступ SFTP kpa39l.myjino.ru:2222).
|
||||
- GtS конфигурируется ТОЛЬКО через GTS_* env (config.yaml не подхватывается).
|
||||
|
||||
## Tasks
|
||||
|
||||
### 1. Apex WebFinger → динамический
|
||||
|
||||
- [x] 1.1 Создать `static/.well-known/webfinger/.htaccess` в репо dedinit.ru:
|
||||
`RedirectMatch 301 ^/\.well-known/webfinger(.*)$ https://social.dedinit.ru/.well-known/webfinger$1`
|
||||
- [x] 1.2 Залить .htaccess на Jino (`/dedinit.ru/.well-known/webfinger/.htaccess`) через SFTP
|
||||
- [x] 1.3 Удалить статический `index.html` из `/dedinit.ru/.well-known/webfinger/`
|
||||
- [x] 1.4 Проверить: `curl -L 'https://dedinit.ru/.well-known/webfinger?resource=acct:kpa39l@dedinit.ru'`
|
||||
→ `subject: acct:kpa39l@dedinit.ru`
|
||||
|
||||
### 2. Nodeinfo apex → динамический
|
||||
|
||||
- [x] 2.1 Создать `static/.well-known/nodeinfo/.htaccess` (RedirectMatch 301 на social)
|
||||
- [x] 2.2 Залить на Jino, проверить `curl -L 'https://dedinit.ru/.well-known/nodeinfo'`
|
||||
|
||||
### 3. Регистрация (10/день)
|
||||
|
||||
- [x] 3.1 В `docker-compose.yml`: `GTS_ACCOUNTS_REGISTRATION_OPEN=true`,
|
||||
`GTS_ACCOUNTS_REGISTRATION_DAILY_LIMIT=10`
|
||||
- [x] 3.2 `docker compose up -d gotosocial` (recreate)
|
||||
- [x] 3.3 Проверить `/api/v1/instance` → `registrations: true`; env в контейнере
|
||||
|
||||
### 4. SMTP
|
||||
|
||||
- [x] 4.1 Тестовое письмо через smtplib (smtp.jino.ru:587 STARTTLS, social@dedinit.ru)
|
||||
на kpa39l@yandex.ru — доставлено
|
||||
|
||||
### 5. Финализация OpenSpec
|
||||
|
||||
- [x] 5.1 Валидация change: `openspec validate fix-apex-webfinger-and-registration`
|
||||
- [ ] 5.2 Коммит + пуш docker-compose.yml (gotosocial) и .htaccess (dedinit.ru)
|
||||
- [ ] 5.3 Архив change (`openspec archive`)
|
||||
Reference in New Issue
Block a user