This repository was archived by the owner on Mar 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
73 lines (63 loc) · 1.97 KB
/
.env.example
File metadata and controls
73 lines (63 loc) · 1.97 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
64
65
66
67
68
69
70
71
72
73
# ========================================
# 基本設定
# ========================================
APP_NAME="FastAPI Template"
ENV_MODE=test
APP_PORT=59901
# ========================================
# データベース設定
# ========================================
POSTGRES_USER=user
POSTGRES_PASSWORD=password
POSTGRES_DB=main
POSTGRES_HOST=127.0.0.1
POSTGRES_PORT=5432
# ========================================
# セッション設定
# ========================================
SESSION_COOKIE_NAME=SESS_ID
SESSION_EXPIRE=86400
# セッション暗号化キー(Fernet形式)
# uv run python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
SESSION_ENCRYPTION_KEY=
# ========================================
# API設定
# ========================================
API_KEY=your_api_key_here
BACKEND_CORS_ORIGINS=
# ========================================
# セキュリティ設定
# ========================================
SECURITY_HEADERS=false
CSP_POLICY="default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self'"
# ========================================
# モニタリング設定
# ========================================
# Sentry
SENTRY_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0
# New Relic
NEW_RELIC_LICENSE_KEY=
NEW_RELIC_APP_NAME="FastAPI Template"
NEW_RELIC_HIGH_SECURITY=false
NEW_RELIC_MONITOR_MODE=true
# ========================================
# バックアップ設定
# ========================================
# バックアップスケジュール(cron形式、例: "0 3 * * *")
BACKUP_SCHEDULE=
BACKUP_RETENTION_DAYS=7
# ========================================
# S3設定(バックアップ保存先、オプション)
# ========================================
S3_ENDPOINT=
S3_BUCKET=
S3_ACCESS_KEY=
S3_SECRET_KEY=
S3_REGION=
# ========================================
# GitHub設定(デプロイ用)
# ========================================
GITHUB_REPOSITORY=ukwhatn/fastapi-template
GITHUB_USER=
GITHUB_TOKEN=