-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfly.bil.toml
42 lines (37 loc) · 1.27 KB
/
fly.bil.toml
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
# fly.bil.toml app configuration file
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
# This file defines the Fly deployment for the Battery Intelligence Lab in Oxford, UK.
app = "galv-dev-backend"
primary_region = "lhr"
console_command = "/code/backend_django/manage.py shell"
[build]
image = "ghcr.io/galv-team/galv-backend:latest"
[env]
VIRTUAL_HOST = "galv-backend.fly.dev"
FRONTEND_VIRTUAL_HOST = "https://galv.fly.dev"
DJANGO_SETTINGS_MODULE = "config.settings"
DJANGO_EMAIL_HOST = 'smtp.gmail.com'
DJANGO_EMAIL_USE_TLS = "False"
DJANGO_EMAIL_PORT = "465"
DJANGO_EMAIL_USE_SSL = "True"
DJANGO_EMAIL_HOST_USER = 'oxfordbatterymodelling@gmail.com'
DJANGO_DEFAULT_FROM_EMAIL = 'oxfordbatterymodelling@gmail.com'
DJANGO_LABS_USE_OUR_S3_STORAGE = "True"
DJANGO_LAB_STORAGE_QUOTA_BYTES = "1_000_000_000_000" # 1TB
DJANGO_AWS_DEFAULT_ACL = "private"
DJANGO_AWS_STORAGE_BUCKET_NAME = "galv-bil"
DJANGO_AWS_S3_REGION_NAME = "eu-west-2"
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, in secrets
[http_service]
internal_port = 80
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ["app"]
[[vm]]
cpu_kind = "shared"
cpus = 2
memory_mb = 2048