Документация Reckfulmn

Рабочие endpoints и правила подключения проекта к Nginx.

Авторизация

Форма входа отправляет POST /api/auth/login. После успешного входа сервер ставит HttpOnly cookie и открывает /console.

POST /api/auth/loginJSON
curl -X POST https://reckfulmn.site/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"admin@reckfulmn.site","password":"********"}'

Операционные endpoints

GET /health
GET /readyz
GET /status.json
GET /api/status
GET /api/metrics
POST /api/access-requests
POST /api/contact

Nginx

Для публикации сайта проксируйте домен на локальный Node.js порт 8080.

nginx/etc/nginx/sites-available/reckfulmn
server {
    listen 80;
    server_name reckfulmn.site www.reckfulmn.site;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}