-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfly.dev.toml
More file actions
90 lines (83 loc) · 2.2 KB
/
fly.dev.toml
File metadata and controls
90 lines (83 loc) · 2.2 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
87
88
89
90
app = "restarters-dev"
primary_region = "lhr"
[build]
dockerfile = "Dockerfile.fly"
# Migrations run in startup.sh instead of release_command because
# release_command machines don't have 6PN network access to the DB.
[env]
APP_ENV = "staging"
APP_DEBUG = "false"
APP_URL = "https://restarters.dev"
DB_CONNECTION = "mysql"
DB_HOST = "restarters-dev-db.internal"
DB_PORT = "3306"
DB_DATABASE = "restarters"
CACHE_DRIVER = "file"
SESSION_DRIVER = "database"
QUEUE_CONNECTION = "database"
SESSION_DOMAIN = ""
LOG_CHANNEL = "daily"
FILESYSTEM_DISK = "s3"
AWS_DEFAULT_REGION = "auto"
AWS_ENDPOINT = "https://fly.storage.tigris.dev"
AWS_USE_PATH_STYLE_ENDPOINT = "true"
FEATURE__WIKI_INTEGRATION = "false"
FEATURE__DISCOURSE_INTEGRATION = "false"
SENTRY_ENVIRONMENT = "dev"
MAIL_MAILER = "smtp"
MAIL_HOST = "restarters-dev-mail.internal"
MAIL_PORT = "1025"
MAIL_ENCRYPTION = ""
MAIL_FROM_ADDRESS = "dev@restarters.dev"
MAIL_FROM_NAME = "Restarters Dev"
# Table type constants
TBL_USERS = "1"
TBL_GROUPS = "2"
TBL_EVENTS = "3"
TBL_DEVICES = "4"
TBL_IMAGES = "5"
TBL_LINKS = "6"
# Device status constants
DEVICE_FIXED = "1"
DEVICE_REPAIRABLE = "2"
DEVICE_DEAD = "3"
# Category IDs
MISC_CATEGORY_ID = "46"
MISC_CATEGORY_ID_POWERED = "46"
MISC_CATEGORY_ID_UNPOWERED = "50"
# Impact calculation constants
DISPLACEMENT_VALUE = "0.5"
EMISSION_RATIO_UNPOWERED = "17.70147059"
EMISSION_RATIO_POWERED = "32.06679233"
# Session
SESSION_COOKIE = "restarters_session"
SESSION_LIFETIME = "10080"
SESSION_TABLE = "laravel_sessions"
# Misc
L5_SWAGGER_GENERATE_ALWAYS = "false"
VITE_MANIFEST_PATH = "public/build/manifest.json"
BASIC_AUTH_ENABLED = "true"
BASIC_AUTH_PASSWORD = "project"
APP_SHOW_BRANCH = "true"
[http_service]
internal_port = 80
force_https = true
auto_stop_machines = "off"
auto_start_machines = true
min_machines_running = 1
[checks]
[checks.health]
port = 80
type = "http"
interval = "15s"
timeout = "10s"
grace_period = "120s"
method = "GET"
path = "/robots.txt"
[mounts]
source = "app_logs_dev"
destination = "/var/log"
[[vm]]
size = "shared-cpu-2x"
memory = 4096
swap_size_mb = 2048