Add initial project structure with backend and frontend setup
- Created backend structure with Go, including main application logic and API endpoints. - Added Docker support for both development and production environments. - Introduced frontend using Nuxt 3 with Tailwind CSS for styling. - Included configuration files for Docker and environment variables. - Established basic documentation for contributing, development, and deployment processes. - Set up .gitignore and .dockerignore files to manage ignored files in the repository.
This commit is contained in:
27
docs/configuration.md
Normal file
27
docs/configuration.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# Настройка
|
||||
|
||||
## Переменные окружения и флаги
|
||||
|
||||
| Переменная / флаг | Описание | По умолчанию |
|
||||
|-------------------|----------|--------------|
|
||||
| `HNHMAP_PORT` | Порт HTTP-сервера | 8080 |
|
||||
| `-port` | То же (флаг командной строки) | значение `HNHMAP_PORT` или 8080 |
|
||||
| `HNHMAP_BOOTSTRAP_PASSWORD` | Пароль для первой настройки: при отсутствии пользователей вход как `admin` с этим паролем создаёт первого админа | — |
|
||||
| `-grids` | Каталог гридов (флаг командной строки; в Docker обычно `-grids=/map`) | `grids` |
|
||||
|
||||
Пример для первого запуска:
|
||||
|
||||
```bash
|
||||
export HNHMAP_BOOTSTRAP_PASSWORD=your-secure-password
|
||||
./hnh-map -grids=./grids -port=8080
|
||||
```
|
||||
|
||||
В Docker часто монтируют том в `/map` и запускают с `-grids=/map`.
|
||||
|
||||
Для фронта (Nuxt) в режиме разработки:
|
||||
|
||||
| Переменная | Описание |
|
||||
|------------|----------|
|
||||
| `NUXT_PUBLIC_API_BASE` | Базовый путь к API (например `/map/api` при прокси к бэкенду) |
|
||||
|
||||
См. также [.env.example](../.env.example) в корне репозитория.
|
||||
Reference in New Issue
Block a user