Skip to content

Commit 7200506

Browse files
authored
Merge pull request #1660 from hackmdio/bugfix/heroku-postgres-ssl
Enforce PG ssl require mode on heroku
2 parents 181adbd + 1cdfbad commit 7200506

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
"CMD_ALLOW_PDF_EXPORT": {
144144
"description": "Enable or disable PDF exports",
145145
"required": false
146+
},
147+
"PGSSLMODE": {
148+
"description": "Enforce PG SSL mode",
149+
"value": "require"
146150
}
147151
},
148152
"addons": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"coverage:ci": "nyc mocha --no-color -R dot --require intelli-espower-loader --exit --recursive ./test",
2828
"test": "npm run-script lint && npm run-script jsonlint && npm run-script coverage",
2929
"test:ci": "npm run-script lint && npm run-script jsonlint && npm run-script coverage:ci",
30-
"postinstall": "bin/heroku"
30+
"heroku-postbuild": "npm run build && ./bin/heroku"
3131
},
3232
"dependencies": {
3333
"@aws-sdk/client-s3-node": "0.1.0-preview.2",

0 commit comments

Comments
 (0)