Skip to content

Commit 611ff68

Browse files
authored
Merge pull request #1123 from team-mirai/chore/cleanup-env-example
chore: .env.exampleを整理
2 parents 1ee46b6 + df57f25 commit 611ff68

File tree

2 files changed

+24
-30
lines changed

2 files changed

+24
-30
lines changed

admin/.env.example

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# copy to .env.local for development
2+
3+
# === 必須 ===
4+
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54332/postgres
5+
26
SUPABASE_URL=http://127.0.0.1:54321
37
SUPABASE_ANON_KEY="your anon key from supabase status"
48
SUPABASE_SERVICE_ROLE_KEY="your service key from supabase status"
59

6-
# Cache refresh
7-
DATA_REFRESH_TOKEN="your-secret-refresh-token"
8-
WEBAPP_URL="http://localhost:3000"
9-
SITE_URL="http://localhost:3001"
10+
DATA_REFRESH_TOKEN=your-secret-refresh-token
11+
WEBAPP_URL=http://localhost:3000
12+
SITE_URL=http://localhost:3001
1013

11-
# Basic Authentication (optional)
12-
# If set, enables basic auth for the entire application
13-
# Value should be SHA256 hash of "id:password" format
14-
# Example: echo -n "admin:password" | shasum -a 256
15-
# BASIC_AUTH_SECRET="sha256_hash_of_id_password"
14+
# === 任意 ===
15+
# MAINTENANCE_MODE=true
16+
# MAINTENANCE_MESSAGE=予定時間 22:00-26:00
1617

17-
# Database Configuration
18-
DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54332/postgres"
19-
DIRECT_URL="postgresql://postgres:postgres@127.0.0.1:54332/postgres"
18+
# ベーシック認証: echo -n "admin:password" | shasum -a 256
19+
# BASIC_AUTH_SECRET=sha256_hash_of_id_password

webapp/.env.example

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
# copy to .env.local for development
2-
# Application URL
3-
WEBAPP_URL="https://marumie.team-mir.ai"
42

5-
# Cache refresh
6-
DATA_REFRESH_TOKEN="your-secret-refresh-token"
3+
# === 必須 ===
4+
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54332/postgres
5+
DIRECT_URL=postgresql://postgres:postgres@127.0.0.1:54332/postgres
76

8-
# Google Analytics
9-
NEXT_PUBLIC_GA_TRACKING_ID="your-ga-tracking-id"
7+
WEBAPP_URL=https://marumie.team-mir.ai
8+
DATA_REFRESH_TOKEN=your-secret-refresh-token
109

11-
# モックデータ使用(開発・テスト用)
12-
# "true" に設定すると、データベースの代わりにモックデータを返すようになります
13-
# USE_MOCK_DATA="true"
10+
# === 任意 ===
11+
# NEXT_PUBLIC_GA_TRACKING_ID=your-ga-tracking-id
12+
# USE_MOCK_DATA=true
13+
# MAINTENANCE_MODE=true
14+
# MAINTENANCE_MESSAGE=予定時間 22:00-26:00
1415

15-
# ベーシック認証(オプション)
16-
# 設定すると、webアプリ全体にベーシック認証を適用
17-
# 値は "id:password" 形式の文字列をSHA256ハッシュ化したもの
18-
# 例: echo -n "admin:password" | shasum -a 256
19-
# BASIC_AUTH_SECRET="sha256_hash_of_id_password"
20-
21-
# Database Configuration
22-
DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:54332/postgres"
23-
DIRECT_URL="postgresql://postgres:postgres@127.0.0.1:54332/postgres"
16+
# ベーシック認証: echo -n "admin:password" | shasum -a 256
17+
# BASIC_AUTH_SECRET=sha256_hash_of_id_password

0 commit comments

Comments
 (0)