Skip to content

Commit 909de52

Browse files
fix: send actual cert file contents
1 parent 40ca0b4 commit 909de52

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
FROM oven/bun:1.1.29
22

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-
83
WORKDIR /app
94
COPY package.json bun.lockb ./
105
RUN bun install --production

app/pages/survey.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ watch(
5959
const zResult = z.string().url().safeParse(url);
6060
return zResult.success;
6161
});
62-
console.log(validUrls.value);
6362
},
6463
{
6564
deep: true

hono/db.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { drizzle } from 'drizzle-orm/node-postgres';
22
import { Pool } from 'pg';
3-
import fs from 'node:fs';
43

54
export const pool = new Pool({
65
user: process.env.PGUSER,
@@ -10,7 +9,7 @@ export const pool = new Pool({
109
port: +(process.env.PGPORT || 5432),
1110
ssl: {
1211
rejectUnauthorized: true,
13-
ca: fs.readFileSync(process.env.PGCERT_PATH || '').toString()
12+
ca: process.env.PGCA
1413
}
1514
});
1615

0 commit comments

Comments
 (0)