Skip to content

Commit 69f1a46

Browse files
committed
UPD: update database config
1 parent f3e2159 commit 69f1a46

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

.github/workflows/cd-workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ jobs:
115115
env_vars: |
116116
POSTGRES_HOST=/cloudsql/${{ secrets.GCP_SQL_CONNECTION_NAME }}
117117
POSTGRES_PORT=5432
118-
# BASE_URL=https://backstage.foundations-software-engineering.com
118+
BASE_URL=https://backstage.foundations-software-engineering.com

app-config.production.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
app:
2-
baseUrl: https://backstage-deployment-1006240973223.europe-west10.run.app
2+
baseUrl: https://backstage.foundations-software-engineering.com
33

44
backend:
5-
baseUrl: https://backstage-deployment-1006240973223.europe-west10.run.app
5+
baseUrl: https://backstage.foundations-software-engineering.com
66
cors:
7-
origin: https://backstage-deployment-1006240973223.europe-west10.run.app
7+
origin: https://backstage.foundations-software-engineering.com
88
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
99
credentials: true
10-
database:
11-
client: pg
12-
connection:
13-
host: ${POSTGRES_HOST}
14-
port: ${POSTGRES_PORT}
15-
user: ${POSTGRES_USER}
16-
password: ${POSTGRES_PASSWORD}
17-
plugin:
18-
auth:
19-
connection:
20-
database: ${POSTGRES_DB}
2110

2211
auth:
2312
environment: production

app-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ backend:
1616
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
1717
credentials: true
1818

19+
database:
20+
client: pg
21+
connection:
22+
host: ${POSTGRES_HOST}
23+
port: ${POSTGRES_PORT}
24+
user: ${POSTGRES_USER}
25+
password: ${POSTGRES_PASSWORD}
26+
knexConfig:
27+
pool:
28+
min: 15
29+
max: 30
30+
acquireTimeoutMillis: 60000
31+
createTimeoutMillis: 30000
32+
destroyTimeoutMillis: 5000
33+
idleTimeoutMillis: 60000
34+
reapIntervalMillis: 1000
35+
createRetryIntervalMillis: 200
36+
propagateCreateError: false
37+
1938
integrations:
2039
github:
2140
- host: github.com

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"express": "^4.17.1",
5050
"express-promise-router": "^4.1.0",
5151
"node-gyp": "^9.0.0",
52-
"pg": "^8.11.3"
52+
"pg": "^8.13.1"
5353
},
5454
"devDependencies": {
5555
"@backstage/cli": "^0.29.0",

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15438,7 +15438,7 @@ __metadata:
1543815438
express: "npm:^4.17.1"
1543915439
express-promise-router: "npm:^4.1.0"
1544015440
node-gyp: "npm:^9.0.0"
15441-
pg: "npm:^8.11.3"
15441+
pg: "npm:^8.13.1"
1544215442
languageName: unknown
1544315443
linkType: soft
1544415444

@@ -28604,7 +28604,7 @@ __metadata:
2860428604
languageName: node
2860528605
linkType: hard
2860628606

28607-
"pg@npm:^8.11.3":
28607+
"pg@npm:^8.11.3, pg@npm:^8.13.1":
2860828608
version: 8.13.1
2860928609
resolution: "pg@npm:8.13.1"
2861028610
dependencies:

0 commit comments

Comments
 (0)