-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.production.yaml
More file actions
66 lines (56 loc) · 2.08 KB
/
Copy pathconfig.production.yaml
File metadata and controls
66 lines (56 loc) · 2.08 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
# Production Configuration for go-faster/fs
#
# This configuration is optimized for production deployments with:
# - Increased timeouts for better resilience
# - Enhanced observability settings
# - Production-ready paths
server:
# Listen on all interfaces in production (use with proper firewall rules)
addr: ":8080"
# Increased timeouts for production workloads
read_timeout: 60s
write_timeout: 120s # Increased for large file uploads
idle_timeout: 300s # 5 minutes
health_path: "/health"
storage:
# Production storage directory
# Should be mounted to a persistent volume in containerized environments
root: "/data/s3"
type: "filesystem"
# Pre-create production buckets (optional)
# Uncomment and configure as needed
# buckets:
# - prod-bucket
# - backups
observability:
service_name: "go-faster/fs"
# Enable all observability features in production
enable_request_logging: true
enable_metrics: true
enable_tracing: true
# Server-side encryption of object bodies at rest (SSE-S3).
#
# Off unless a master key is given. It is deliberately not defaulted on with a
# generated key: a key this server invents and stores next to the data protects
# against nothing an attacker holding the disk cannot undo. The key has to come
# from somewhere the disk does not.
#
# Losing every master key loses the data. There is no recovery path — that is
# what encryption at rest means.
#
# encryption:
# # 32 bytes, as 64 hex characters, standard base64, or raw. Prefer the
# # FS_MASTER_KEY environment variable, which overrides this and is what most
# # secret stores can inject.
# master_key_file: "/run/secrets/fs-master-key"
#
# # Encrypt every object, including requests that do not ask. Without this,
# # encryption applies only where the client sends
# # x-amz-server-side-encryption.
# default_algorithm: "AES256"
#
# # Keys kept only to read objects written before a rotation. Remove an entry
# # once nothing is wrapped by it — earlier, and those objects become
# # unreadable.
# # previous_key_files:
# # - "/run/secrets/fs-master-key.old"