Courier 26.11.2: DB-Env, Chart-Werte und Test-Deploy
ci / build (push) Successful in 24s

This commit is contained in:
AImighty Bot committed 2026-11-22 14:41:23 +00:00
1 parent 2c0d7ec225
commit 8418751ec8
10 files changed
+41 -15

No files matched your search

+3
View File
@@ -45,3 +45,6 @@ next-env.d.ts
.env.local
!.env.example
*.log
# Build-Artefakte
dist/
+2 -2
View File
@@ -12,7 +12,7 @@ metadata:
title: Courier
description: Transaktionsmail für deine Apps über Amazon SES.
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
version: 26.11.1
version: 26.11.2
categories:
- Applications
@@ -106,7 +106,7 @@ envs:
default: "1000"
spec:
versionName: '26.11.1'
versionName: '26.11.2'
fullDescription: |
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
+2 -2
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: courier
description: Transaktionsmail-Gateway für hubsport.club über Amazon SES.
type: application
version: 26.11.1
appVersion: "26.11.1"
version: 26.11.2
appVersion: "26.11.2"
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
home: https://git.aimighty.olares.de/aimighty/courier
+2 -2
View File
@@ -12,7 +12,7 @@ metadata:
title: Courier
description: Transaktionsmail für deine Apps über Amazon SES.
icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png
version: 26.11.1
version: 26.11.2
categories:
- Applications
@@ -106,7 +106,7 @@ envs:
default: "1000"
spec:
versionName: '26.11.1'
versionName: '26.11.2'
fullDescription: |
**Courier** ist ein kleiner Versanddienst für transaktionale E-Mails:
eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und
+1 -1
View File
@@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: courier
image: "{{ .Values.images.registry }}/courier:{{ .Values.images.tag | default .Chart.AppVersion }}"
image: "{{ .Values.images.registry }}/{{ .Values.images.repository | default "courier" }}:{{ .Values.images.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.images.pullPolicy }}
ports:
- name: http
+1 -1
View File
@@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: courier-worker
image: "{{ .Values.images.registry }}/courier:{{ .Values.images.tag | default .Chart.AppVersion }}"
image: "{{ .Values.images.registry }}/{{ .Values.images.repository | default "courier" }}:{{ .Values.images.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.images.pullPolicy }}
command:
- ./node_modules/.bin/tsx
+1
View File
@@ -6,6 +6,7 @@ workloads:
images:
registry: git.aimighty.olares.de/aimighty
repository: courier
tag: ""
pullPolicy: IfNotPresent
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "courier",
"version": "26.11.1",
"version": "26.11.2",
"private": true,
"scripts": {
"dev": "next dev -H 0.0.0.0 -p 3400",
+14 -3
View File
@@ -23,9 +23,20 @@ const key = `ck_live_${randomBytes(24).toString("base64url")}`;
const hash = createHmac("sha256", pepper).update(key).digest("hex");
const prefix = key.slice(0, 16);
const url =
process.env.DATABASE_URL ||
`postgresql://courier@127.0.0.1:${process.env.DB_PORT || "55432"}/courier`;
function databaseUrl() {
if (process.env.DATABASE_URL) return process.env.DATABASE_URL;
const host = process.env.DB_HOST;
if (host) {
const user = encodeURIComponent(process.env.DB_USER ?? "");
const password = encodeURIComponent(process.env.DB_PASSWORD ?? "");
const name = process.env.DB_NAME ?? "courier";
const port = process.env.DB_PORT ?? "5432";
return `postgresql://${user}:${password}@${host}:${port}/${name}`;
}
return `postgresql://courier@127.0.0.1:${process.env.DB_PORT || "55432"}/courier`;
}
const url = databaseUrl();
const client = new pg.Client({ connectionString: url });
await client.connect();
const { rows } = await client.query(
+14 -3
View File
@@ -3,9 +3,20 @@ import { readdir, readFile } from "node:fs/promises";
import path from "node:path";
import pg from "pg";
const url =
process.env.DATABASE_URL ||
`postgresql://courier@127.0.0.1:${process.env.DB_PORT || "55432"}/courier`;
function databaseUrl() {
if (process.env.DATABASE_URL) return process.env.DATABASE_URL;
const host = process.env.DB_HOST;
if (host) {
const user = encodeURIComponent(process.env.DB_USER ?? "");
const password = encodeURIComponent(process.env.DB_PASSWORD ?? "");
const name = process.env.DB_NAME ?? "courier";
const port = process.env.DB_PORT ?? "5432";
return `postgresql://${user}:${password}@${host}:${port}/${name}`;
}
return `postgresql://courier@127.0.0.1:${process.env.DB_PORT || "55432"}/courier`;
}
const url = databaseUrl();
const client = new pg.Client({ connectionString: url });
await client.connect();