-
Notifications
You must be signed in to change notification settings - Fork 1
/
render.yaml
71 lines (70 loc) · 2.18 KB
/
render.yaml
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
# rndr = YAML.safe_load_file("render.yaml")
# static_site = rndr["services"].find { _1["env"] == "static" }
# api_site = rndr["services"].find { _1["env"] == "ruby" }
# api_site["name"] => "whitefusion-site-api"
# static_site["routes"] => [{ type, source, destination }]
#
services:
- type: web
name: whitefusion-site
env: static
buildCommand: bin/bridgetown deploy
staticPublishPath: ./output
pullRequestPreviewsEnabled: true
envVars:
- key: BRIDGETOWN_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: whitefusion_proddb
property: connectionString
- fromGroup: whitefusion-prod-envs
headers:
- path: /*
name: X-Frame-Options
value: DENY
- path: /*
name: X-XSS-Protection
value: "1; mode=block"
- path: /*
name: X-Content-Type-Options
value: "nosniff"
- path: /*
name: Strict-Transport-Security
value: "max-age=15552000; includeSubDomains"
- path: /*
name: Referrer-Policy
value: "no-referrer-when-downgrade"
- path: /*
name: Cache-Control
value: "public, max-age=86400, s-max-age=86400"
routes:
- type: rewrite
source: /contact-form/*
destination: https://whitefusion-site-api.onrender.com/contact-form/*
- type: rewrite
source: /booking/*
destination: https://whitefusion-site-api.onrender.com/booking/*
- type: rewrite
source: /auth/*
destination: https://whitefusion-site-api.onrender.com/auth/*
- type: rewrite
source: /account/*
destination: https://whitefusion-site-api.onrender.com/account/*
- type: web
name: whitefusion-site-api
env: ruby
buildCommand: bundle install && yarn install && bin/bridgetown frontend:build
startCommand: bin/bridgetown start
envVars:
- key: BRIDGETOWN_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: whitefusion_proddb
property: connectionString
- fromGroup: whitefusion-prod-envs
databases:
- name: whitefusion_proddb
plan: starter
databaseName: whitefusion_studio_production