-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml
More file actions
45 lines (38 loc) · 1.46 KB
/
config.toml
File metadata and controls
45 lines (38 loc) · 1.46 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
# Gitopia Storage Provider Configuration
# This is the base configuration file with production defaults
# Override values using environment variables or config.local.toml for development
# Server Configuration
WEB_SERVER_PORT = 5000
GIT_REPOS_DIR = "/var/repos"
LFS_OBJECTS_DIR = "/var/lfs-objects"
ATTACHMENT_DIR = "/var/attachments"
WORKING_DIR = "/app"
# Gitopia Network Configuration (Production)
GITOPIA_ADDR = "gitopia-grpc.polkachu.com:11390"
TM_ADDR = "https://gitopia-rpc.polkachu.com:443"
CHAIN_ID = "gitopia"
GAS_PRICES = "0.001ulore"
# IPFS Configuration
IPFS_CLUSTER_PEER_HOST = "ipfs-cluster"
IPFS_CLUSTER_PEER_PORT = "9094"
IPFS_HOST = "ipfs"
IPFS_PORT = "5001"
# External Storage Configuration
ENABLE_EXTERNAL_PINNING = false
STORAGE_PROVIDERS = [] # Available: "pinata", "filebase"
# Pinata Configuration
PINATA_JWT = ""
# Filebase Configuration
FILEBASE_ACCESS_KEY = ""
FILEBASE_SECRET_KEY = ""
FILEBASE_BUCKET = ""
FILEBASE_REGION = "us-east-1"
FILEBASE_ENDPOINT = "https://s3.filebase.com"
# Cache Configuration
CACHE_REPO_MAX_AGE = "24h"
CACHE_REPO_MAX_SIZE = 10737418240 # 10GB in bytes
CACHE_ASSET_MAX_AGE = "168h" # Maximum age for asset cache entries (7 days)
CACHE_ASSET_MAX_SIZE = 5368709120 # Maximum size for asset cache (5GB in bytes)
CACHE_LFS_MAX_AGE = "720h" # Maximum age for LFS object cache entries (30 days)
CACHE_LFS_MAX_SIZE = 53687091200 # Maximum size for LFS object cache (50GB in bytes)
CACHE_CLEAR_INTERVAL = "1h"