-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
117 lines (102 loc) · 5.29 KB
/
fly.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# fly.toml app configuration file generated for formsg on 2024-02-15T16:04:26+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'formsg'
primary_region = 'sin'
swap_size_mb = 1024
[env]
APP_NAME = "FormSG Demo"
APP_DESC = "A publicly-accessible demonstration of FormSG"
APP_URL = "https://form.demos.sg"
FE_APP_URL = "https://form.demos.sg"
IS_GENERAL_MAINTENANCE = "warn:DO NOT GIVE YOUR PERSONAL INFORMATION. This platform is a demo of FormSG for evaluation purposes only."
ADMIN_BANNER_CONTENT = 'This platform is a demo of FormSG for evaluation purposes only. Data resets every 3 hours starting from 00:00 UTC. For enquiries, visit https://form.gov.sg'
IS_LOGIN_BANNER = 'This platform is a demo of FormSG for evaluation purposes only. Log ins are only supported via email. For enquiries, visit https://form.gov.sg'
# S3 Bucket config
# We use Cloudflare R2, so set region to us-east-1
# See https://developers.cloudflare.com/r2/api/s3/api/#bucket-region
AWS_REGION = "us-east-1"
ATTACHMENT_S3_BUCKET = "form-attachment-bucket"
PAYMENT_PROOF_S3_BUCKET = "form-payment-proof-bucket"
IMAGE_S3_BUCKET = "form-image-bucket"
LOGO_S3_BUCKET = "form-logo-bucket"
STATIC_ASSETS_S3_BUCKET = "form-static-assets-bucket"
VIRUS_SCANNER_QUARANTINE_S3_BUCKET = "form-virus-scanner-quarantine-bucket"
VIRUS_SCANNER_CLEAN_S3_BUCKET = "form-virus-scanner-clean-bucket"
FORMSG_SDK_MODE = "development"
BOUNCE_LIFE_SPAN = "86400000"
SECRET_ENV = "development"
SUBMISSIONS_RATE_LIMIT = "200"
SEND_AUTH_OTP_RATE_LIMIT = "60"
SENTRY_CONFIG_URL = "https://[email protected]/123456"
CSP_REPORT_URI = "https://[email protected]/123456"
# Test credentials from reCAPTCHA docs
# https://developers.google.com/recaptcha/docs/faq#id-like-to-run-automated-tests-with-recaptcha.-what-should-i-do
GOOGLE_CAPTCHA = "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe"
GOOGLE_CAPTCHA_PUBLIC = "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI"
# Keep in sync with the development key in
# https://github.com/opengovsg/formsg-javascript-sdk/blob/develop/src/resource/verification-keys.ts
VERIFICATION_SECRET_KEY = "iGkfOuI6uxrlfw+7CZFFUZBwk86I+pu6v+g7EWA6qJpJnilXQleCPx2EVTr24eWWphzFO2WJiaL53oyXnqWdBQ=="
# Keep in sync with the development key in
# https://github.com/opengovsg/formsg-javascript-sdk/blob/develop/src/resource/signing-keys.ts
SIGNING_SECRET_KEY = "HDBXpu+2/gu10bLHpy8HjpN89xbA6boH9GwibPGJA8BOXmB+zOUpxCP33/S5p8vBWlPokC7gLR0ca8urVwfMUQ=="
# Mock Twilio credentials. SMSes do not work in dev environment.
TWILIO_ACCOUNT_SID = "AC00000000000000000000000000000000"
TWILIO_API_KEY = "mockTwilioApiKey"
TWILIO_API_SECRET = "mockTwilioApiSecret"
TWILIO_MESSAGING_SERVICE_SID = "MG00000000000000000000000000000000"
SP_OIDC_NDI_DISCOVERY_ENDPOINT = "https://mockpass.demos.sg/singpass/v2/.well-known/openid-configuration"
SP_OIDC_NDI_JWKS_ENDPOINT = "https://mockpass.demos.sg/singpass/v2/.well-known/keys"
SP_OIDC_RP_CLIENT_ID = "rpClientId"
SP_OIDC_RP_REDIRECT_URL = "https://form.demos.sg/api/v3/singpass/login"
SP_OIDC_RP_JWKS_PUBLIC_PATH = "./__tests__/setup/certs/test_sp_rp_public_jwks.json"
SP_OIDC_RP_JWKS_SECRET_PATH = "./__tests__/setup/certs/test_sp_rp_secret_jwks.json"
CP_OIDC_NDI_DISCOVERY_ENDPOINT = "https://mockpass.demos.sg/corppass/v2/.well-known/openid-configuration"
CP_OIDC_NDI_JWKS_ENDPOINT = "https://mockpass.demos.sg/corppass/v2/.well-known/keys"
CP_OIDC_RP_CLIENT_ID = "rpClientId"
CP_OIDC_RP_REDIRECT_URL = "https://form.demos.sg/api/v3/corppass/login"
CP_OIDC_RP_JWKS_PUBLIC_PATH = "./__tests__/setup/certs/test_cp_rp_public_jwks.json"
CP_OIDC_RP_JWKS_SECRET_PATH = "./__tests__/setup/certs/test_cp_rp_secret_jwks.json"
# Needed for MyInfo
SINGPASS_ESRVC_ID = "spEsrvcId"
MYINFO_CLIENT_CONFIG = "dev"
# Use mockpass key pairs and endpoints
MYINFO_FORMSG_KEY_PATH = "./node_modules/@opengovsg/mockpass/static/certs/key.pem"
MYINFO_CERT_PATH = "./node_modules/@opengovsg/mockpass/static/certs/spcp.crt"
MYINFO_CLIENT_ID = "mockClientId"
MYINFO_CLIENT_SECRET = "mockClientSecret"
MYINFO_JWT_SECRET = "mockJwtSecret"
SGID_HOSTNAME = "https://mockpass.demos.sg"
SGID_CLIENT_ID = "sgidclientid"
SGID_CLIENT_SECRET = "sgidclientsecret"
SGID_JWT_SECRET = "sgidjwtsecret"
SGID_ADMIN_LOGIN_REDIRECT_URI = "https://form.demos.sg/api/v3/auth/sgid/login/callback"
SGID_FORM_LOGIN_REDIRECT_URI = "https://form.demos.sg/sgid/login"
SGID_PRIVATE_KEY = "./node_modules/@opengovsg/mockpass/static/certs/key.pem"
SGID_PUBLIC_KEY = "./node_modules/@opengovsg/mockpass/static/certs/server.crt"
SSM_ENV_SITE_NAME = "development"
# Bearer token API key format
API_KEY_VERSION = "v1"
# env vars for virus scanner
VIRUS_SCANNER_LAMBDA_FUNCTION_NAME = "function"
GA_TRACKING_ID = "mockGATrackingId"
POSTMAN_INTERNAL_CAMPAIGN_ID="notused"
POSTMAN_INTERNAL_CAMPAIGN_API_KEY="notused"
POSTMAN_MOP_CAMPAIGN_ID="notused"
POSTMAN_MOP_CAMPAIGN_API_KEY="notused"
POSTMAN_BASE_URL="notused"
GROWTHBOOK_CLIENT_KEY="notused"
SES_CONFIG_SET="notused"
[http_service]
internal_port = 5000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[statics]]
guest_path = "/opt/formsg/dist/frontend"
url_prefix = "/"
[[vm]]
size = 'shared-cpu-1x'