-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfly.toml
More file actions
87 lines (74 loc) · 2.18 KB
/
Copy pathfly.toml
File metadata and controls
87 lines (74 loc) · 2.18 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
74
75
76
77
78
79
80
81
82
83
84
85
86
# fly.toml app configuration file generated for ocms-demo on 2026-02-05T16:03:35+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'ocms-demo'
primary_region = 'fra'
[build]
dockerfile = 'Dockerfile'
[build.args]
VERSION = 'demo'
[env]
GOMEMLIMIT = '200MiB' # Let Go runtime optimize GC within memory budget
OCMS_ACTIVE_THEME = 'developer'
OCMS_CUSTOM_DIR = '/app/custom'
OCMS_DB_PATH = '/app/data/ocms.db'
OCMS_DEMO_MODE = 'true'
OCMS_DO_SEED = 'true'
OCMS_ENV = 'production'
OCMS_LOG_LEVEL = 'info'
OCMS_SERVER_HOST = '0.0.0.0'
OCMS_SERVER_PORT = '8080'
OCMS_UPLOADS_DIR = '/app/data/uploads'
# Disable production security enforcement checks for demo instance
OCMS_REQUIRE_API_ALLOWED_CIDRS = 'false'
OCMS_REQUIRE_TRUSTED_PROXIES = 'false'
OCMS_REQUIRE_BLOCK_SUSPICIOUS_PAGE_HTML = 'false'
OCMS_REQUIRE_API_KEY_SOURCE_CIDRS = 'false'
OCMS_REQUIRE_API_KEY_EXPIRY = 'false'
OCMS_REQUIRE_WEBHOOK_ALLOWED_HOSTS = 'false'
OCMS_REQUIRE_EMBED_ALLOWED_UPSTREAM_HOSTS = 'false'
# No hCaptcha keys are provisioned for the demo, so form captcha cannot be
# required: with OCMS_REQUIRE_FORM_CAPTCHA=true every public form 503s (see
# internal/handler/forms.go). Leave false unless hCaptcha keys are added via
# `fly secrets set OCMS_HCAPTCHA_SITE_KEY=... OCMS_HCAPTCHA_SECRET_KEY=...`.
OCMS_REQUIRE_FORM_CAPTCHA = 'false'
[processes]
app = '/app/ocms'
[[mounts]]
source = 'ocms_data'
destination = '/app/data'
initial_size = '1gb'
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[http_service.concurrency]
type = 'requests'
hard_limit = 250
soft_limit = 200
[checks]
[checks.liveness]
port = 8080
type = 'http'
interval = '30s'
timeout = '5s'
grace_period = '10s'
path = '/health/live'
[checks.readiness]
port = 8080
type = 'http'
interval = '15s'
timeout = '5s'
grace_period = '10s'
path = '/health/ready'
[[restart]]
policy = 'always'
[[vm]]
memory = '256mb'
cpu_kind = 'shared'
cpus = 1
memory_mb = 256