-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (41 loc) · 2.04 KB
/
.env.example
File metadata and controls
56 lines (41 loc) · 2.04 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
## Example environment variables (!!!! DO NOT put and commit real secrets here!!!!! )
# OpenAI API key used by scripts like scripts/generate_post.mjs
# Obtain from https://platform.openai.com/ and set in your shell / CI secrets
# What .env.example is
# - A template file showing which environment variables your project needs.
# - It’s committed to git so others know what to set up.
# - It contains variable names only (no real values).
# What you should do
# - Do not put your real API key in .env.example.
# - Make a local copy and fill it in:
# - cp .env.example .env
# - Open .env and set OPENAI_API_KEY=your_real_key
# - Keep .env out of git (it’s already ignored).
# How the key gets used here
# - Your VS Code task now reads OPENAI_API_KEY from your OS environment (${env:OPENAI_API_KEY}).
# - You have two easy options:
# - Option A (simplest): set the env var in your shell, and run the task.
# - macOS/Linux: `export OPENAI_API_KEY=your_real_key`
# - Windows PowerShell: `$Env:OPENAI_API_KEY='your_real_key'`
# - Option B (use .env automatically): we can tweak the task or script to load .env with dotenv. Examples:
# - Task command: `"command": "node -r dotenv/config scripts/generate_post.mjs"`
# - Or at the top of `scripts/generate_post.mjs`: `import 'dotenv/config'`
# Pick A if you’re comfortable setting env vars; pick B if you prefer keeping keys in .env files locally.
# CI/GitHub Actions
# - Put secrets in GitHub Repository Settings → Secrets and variables → Actions.
# - Reference them in workflows via ${{ secrets.MY_SECRET }} (never commit secrets).
OPENAI_API_KEY=
# Supabase (comments service)
PUBLIC_SUPABASE_URL=
PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_URL=
SUPABASE_SERVICE_ROLE_KEY=
# SMTP for comment emails (verification + admin notify)
SMTP_HOST=smtp.m1.websupport.sk
SMTP_PORT=587
SMTP_SECURE=starttls
SMTP_USER=admin@kriticky.sk
SMTP_PASS=REPLACE_WITH_REAL_PASSWORD
SMTP_FROM=admin@kriticky.sk
SMTP_FROM_NAME=Kriticky.sk
ADMIN_NOTIFY_TO=mysli@kriticky.sk