-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfly.stage.toml
61 lines (53 loc) · 1.99 KB
/
fly.stage.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# fly.toml app configuration file generated for galv-backend-dev-debug on 2023-12-30T07:23:48Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
# To launch a new deployment/manage stuff, use the pattern
# fly <command> <flags> <options> --config fly.stage.toml --app galv-backend-stage
#
# For example, to deploy a new version of the app, use
# [deploy a new version of the app by pushing a release tag to the repo]
# fly deploy --config fly.stage.toml --app galv-backend-stage
# fly storage create --config fly.stage.toml --app galv-backend-stage
#
# To update the app from a new release tag, use
# fly deploy --config fly.stage.toml --app galv-backend-stage
app = "galv-backend-stage"
primary_region = "lhr"
console_command = "/code/backend_django/manage.py shell"
[build]
# image = "ghcr.io/galv-team/galv-backend:latest"
[deploy]
# release_command = "/code/fly_setup.sh"
[env]
# PORT = "80"
VIRTUAL_HOST = "galv-backend-stage.fly.dev"
FRONTEND_VIRTUAL_HOST = "http://galv-frontend-stage.fly.dev,https://galv-frontend-stage.fly.dev"
DJANGO_SETTINGS_MODULE = "config.settings"
# DJANGO_SETTINGS = "dev"
DJANGO_EMAIL_HOST = 'smtp.gmail.com'
DJANGO_EMAIL_USE_TLS = "False"
DJANGO_EMAIL_PORT = "465"
DJANGO_EMAIL_USE_SSL = "True"
DJANGO_EMAIL_HOST_USER = '[email protected]'
DJANGO_DEFAULT_FROM_EMAIL = '[email protected]'
DJANGO_LABS_USE_OUR_S3_STORAGE = "True"
DJANGO_LAB_STORAGE_QUOTA_BYTES = "10_000_000_000" # 10GB
DJANGO_AWS_DEFAULT_ACL = "private"
DJANGO_AWS_STORAGE_BUCKET_NAME = "galv-stage"
DJANGO_AWS_S3_REGION_NAME = "eu-west-2"
# Other AWS stuff set in secrets (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
[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 = 1
memory_mb = 1024
#[[statics]]
# guest_path = "/static/"
# url_prefix = "/django_static/"