Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
63 lines (53 loc) · 2.6 KB
/
Copy path.env.example
File metadata and controls
63 lines (53 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
COMPOSE_PROJECT_NAME=trvl
APP_UID=1000
APP_GID=1000
# Port nginx publishes on the host (docker-compose.yml); the portal is at
# http://127.0.0.1:8081 by default.
NGINX_PORT=8081
# Production gets YII_ENV=prod and YII_DEBUG=0. Both are read by the entry
# scripts (app/web/index.php, app/yii); without them the app runs as production.
YII_ENV=dev
YII_DEBUG=1
# Secret that signs the session and CSRF cookies (app/config/web.php).
# Generate it: php -r "echo bin2hex(random_bytes(32));"
COOKIE_VALIDATION_KEY=
# Forum account used by the parsers and by publications built from forum topics.
# Only signed-in users can see member profiles on the source forum.
FORUM_LOGIN_USERNAME=
FORUM_LOGIN_PASSWORD=
POSTGRES_DB=yii_dev
POSTGRES_USER=yii
POSTGRES_PASSWORD=change-me-now
# Periodic jobs run in three containers built from the same image. Their role is
# fixed by CRON_ROLE in docker-compose.yml, their schedule lives here (cron
# format, container time is UTC).
# parser — the scans of the forum and the tag pass over the forum sections.
PARSER_CRON_SCHEDULE=*/10 * * * *
FORUM_SECTION_PARSER_CRON_SCHEDULE=0 4 * * *
FORUM_POST_PARSER_CRON_SCHEDULE=*/10 * * * *
GALLERY_PARSER_CRON_SCHEDULE=*/10 * * * *
MEMBER_PARSER_CRON_SCHEDULE=*/10 * * * *
TAG_PARSER_CRON_SCHEDULE=*/10 * * * *
# Telegram bot for the TRVL channel (create via @BotFather, then add as channel admin)
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHANNEL_ID=@gsu_travels
# telegram — the queue of publications. The publish schedule is also read by the
# app container: the settings page refuses a gap between the parts of one
# publication shorter than this interval.
TELEGRAM_PUBLISH_CRON_SCHEDULE=*/5 * * * *
TELEGRAM_DELETE_CRON_SCHEDULE=*/5 * * * *
TELEGRAM_EDIT_CRON_SCHEDULE=*/5 * * * *
# Once a day the queue sweeps the album pictures it downloaded into /tmp; only
# files named publication_img_* and older than an hour are removed.
TELEGRAM_TEMP_CLEAN_CRON_SCHEDULE=0 4 * * *
# llm — the queue of stylization jobs. One minute is the shortest step
# supercronic gives, and the form of the publication says so out loud.
LLM_JOB_CRON_SCHEDULE=* * * * *
# Once an hour the llm container probes which models answer and how well they
# follow an edit command (llm/probe-models; feeds the model council).
LLM_PROBE_CRON_SCHEDULE=0 * * * *
# «Активный стиль текста» offers one choice per folder inside this path
# (app/shared/Settings/Infrastructure/DirectoryTextStyleCatalog.php). Empty keeps
# the styles folder beside the repository root, which compose mounts read-only at
# /var/www/styles for the four services that read PHP (app, parser, telegram, llm).
STYLES_PATH=