File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
FROM oven/bun:1.1.29
2
2
3
- RUN mkdir -p /etc/ssl/certs/
4
- RUN echo "$PGCERT" > /etc/ssl/certs/postgres.crt
5
- RUN chmod 600 /etc/ssl/certs/postgres.crt
6
- ENV PGCERT_PATH=/etc/ssl/certs/postgres.crt
7
-
8
3
WORKDIR /app
9
4
COPY package.json bun.lockb ./
10
5
RUN bun install --production
Original file line number Diff line number Diff line change 59
59
const zResult = z .string ().url ().safeParse (url );
60
60
return zResult .success ;
61
61
});
62
- console .log (validUrls .value );
63
62
},
64
63
{
65
64
deep: true
Original file line number Diff line number Diff line change 1
1
import { drizzle } from 'drizzle-orm/node-postgres' ;
2
2
import { Pool } from 'pg' ;
3
- import fs from 'node:fs' ;
4
3
5
4
export const pool = new Pool ( {
6
5
user : process . env . PGUSER ,
@@ -10,7 +9,7 @@ export const pool = new Pool({
10
9
port : + ( process . env . PGPORT || 5432 ) ,
11
10
ssl : {
12
11
rejectUnauthorized : true ,
13
- ca : fs . readFileSync ( process . env . PGCERT_PATH || '' ) . toString ( )
12
+ ca : process . env . PGCA
14
13
}
15
14
} ) ;
16
15
You can’t perform that action at this time.
0 commit comments