-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bundled configuration for Render (#431)
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
TEMPLATE_PATH = File.expand_path("./render", __dir__) | ||
|
||
@render_service_name = ask "What would like to call your Render service?" | ||
template "#{TEMPLATE_PATH}/render.yaml.erb", "render.yaml" | ||
|
||
say "All done. Just create a new blueprint from the Render dashboard and connect this repo." |
26 changes: 26 additions & 0 deletions
26
bridgetown-core/lib/bridgetown-core/configurations/render/render.yaml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
services: | ||
- type: web | ||
name: <%= @render_service_name %> | ||
env: static | ||
buildCommand: bin/bridgetown deploy | ||
staticPublishPath: ./output | ||
pullRequestPreviewsEnabled: true | ||
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters