From 900b61c9363409d0a42f46ed284f65e02d552357 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Tue, 13 Jun 2023 01:40:05 +0200 Subject: [PATCH] Add DTTH Wiki-specific patches for outline --- modules/cloud/outline/dtth-wiki.patch | 55 +++++++++++++++++++++++++++ nki-personal-do/configuration.nix | 3 ++ 2 files changed, 58 insertions(+) create mode 100644 modules/cloud/outline/dtth-wiki.patch diff --git a/modules/cloud/outline/dtth-wiki.patch b/modules/cloud/outline/dtth-wiki.patch new file mode 100644 index 0000000..a0b79f9 --- /dev/null +++ b/modules/cloud/outline/dtth-wiki.patch @@ -0,0 +1,55 @@ +From a6dd030b929f22afa02c9bae86be6997ceda69d7 Mon Sep 17 00:00:00 2001 +From: Natsu Kagami +Date: Tue, 13 Jun 2023 01:30:15 +0200 +Subject: [PATCH] Changes for dtth-wiki + +--- + server/env.ts | 2 +- + server/routes/app.ts | 2 +- + vite.config.ts | 4 ++-- + 3 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/server/env.ts b/server/env.ts +index d218dbc1f..24c0505e3 100644 +--- a/server/env.ts ++++ b/server/env.ts +@@ -581,7 +581,7 @@ export class Environment { + /** + * The product name + */ +- public APP_NAME = "Outline"; ++ public APP_NAME = "DTTH Wiki"; + + /** + * Returns true if the current installation is the cloud hosted version at +diff --git a/server/routes/app.ts b/server/routes/app.ts +index 532fc2309..9acf87817 100644 +--- a/server/routes/app.ts ++++ b/server/routes/app.ts +@@ -54,7 +54,7 @@ export const renderApp = async ( + ) => { + const { + title = env.APP_NAME, +- description = "A modern team knowledge base for your internal documentation, product specs, support answers, meeting notes, onboarding, & moreā€¦", ++ description = "The DTTH-maintained Wiki for DTTH members.", + canonical = "", + } = options; + +diff --git a/vite.config.ts b/vite.config.ts +index f6a2f3d21..69c492b3d 100644 +--- a/vite.config.ts ++++ b/vite.config.ts +@@ -53,8 +53,8 @@ export default () => { + }, + }, + manifest: { +- name: "Outline", +- short_name: "Outline", ++ name: "DTTH Wiki", ++ short_name: "DTTH Wiki", + theme_color: "#fff", + background_color: "#fff", + start_url: "/", +-- +2.40.1 + diff --git a/nki-personal-do/configuration.nix b/nki-personal-do/configuration.nix index 947d2e6..8d4dcac 100644 --- a/nki-personal-do/configuration.nix +++ b/nki-personal-do/configuration.nix @@ -188,6 +188,9 @@ sops.secrets."outline/smtp-password" = { owner = "outline"; }; cloud.services.outline = { enable = true; + package = pkgs.unstable.outline.overrideAttrs (attrs: { + patches = attrs.patches ++ [ ../modules/cloud/outline/dtth-wiki.patch ]; + }); databaseUrl = "postgres://outline:outline@localhost/outline?sslmode=disable"; sequelizeArguments = "--env=production-ssl-disabled"; redisUrl = "local";