dana-medical-site/.env.example
2026-10-14 13:33:13 +00:00

20 lines
1023 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Подключение к базе. Для локальной установки PostgreSQL порт 5432,
# для варианта с docker compose — 5433.
DATABASE_URL=postgres://dana:CHANGE_ME@localhost:5432/dana?sslmode=disable
APP_ADDR=:8080
MEDIA_DIR=./media
ALLOWED_ORIGINS=http://localhost:5173
DEBUG=true
# Готовый HTML сайта после npm run build в web.
WEB_DIR=./web/dist
# Один и тот же origin при сборке web и запуске Go. Для боевого сайта укажите HTTPS-домен.
SITE_URL=http://127.0.0.1:8080
# Актуальный HTML из БД на запросе; кеш обновляется при изменении данных.
# На сервере нужны Node.js, web/.ssr и установленные зависимости web.
SSR_RENDERER=./web/scripts/render-page.mjs
NODE_BINARY=node
# SSR_RENDERER=off — только снимки сборки, требующие ручной пересборки после правок.