Files
Paul Schoeneck 75af38a4b6 Add licensing information and update README for KIBU
- Introduced additional terms under Section 7 of the GNU AGPL v3 for KIBU, including attribution, marking of modified versions, and trademark usage.
- Added MIT License file for clarity on licensing options.
- Updated README.md to reflect the new licensing terms, including detailed usage rights and obligations.
- Created REUSE.toml for SPDX compliance and license annotations.
- Added THIRD_PARTY_NOTICES.md to clarify third-party dependencies and their licenses.
- Updated various source files and scripts to include SPDX headers for copyright and licensing.
- Enhanced footer in layout to display licensing information and project link.
- Implemented a new license page to present the AGPL and additional terms clearly.
2026-11-03 08:27:12 +01:00

21 lines
697 B
JavaScript

// SPDX-FileCopyrightText: 2026 Paul Schoeneck
//
// SPDX-License-Identifier: AGPL-3.0-only AND LicenseRef-KIBU-Additional-Terms
import { existsSync, writeFileSync } from "node:fs";
import { randomBytes } from "node:crypto";
if (existsSync(".env")) {
console.log(".env existiert bereits und wurde nicht veraendert.");
} else {
const password = randomBytes(24).toString("hex");
writeFileSync(".env", [
`DATABASE_URL=postgresql://kibu:${password}@127.0.0.1:55432/kibu`,
`POSTGRES_PASSWORD=${password}`,
"APP_TIMEZONE=Europe/Berlin",
"SESSION_SECURE=false",
"",
].join("\n"), { flag: "wx" });
console.log(".env mit zufaelligem lokalen Datenbankpasswort erstellt.");
}