From 5c378aadcb5cd9c02cb617836c2bcaa950b9574a Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 5 Apr 2020 16:36:10 +0100 Subject: [PATCH] Change Gitea's rootUrl This value defaults to localhost:3000, which works, but then Gitea renders "http://localhost:3000/wpcarro/briefcase" as the URL to clone my briefcase repository. --- nixos/socrates/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index 564ee48e8..fb0964aae 100644 --- a/nixos/socrates/configuration.nix +++ b/nixos/socrates/configuration.nix @@ -81,7 +81,12 @@ in { services.openssh.enable = true; - services.gitea.enable = true; + services.gitea = { + enable = true; + # Without this the links to clone a repository like briefcase will be + # "http://localhost:3000/wpcarro/briefcase". + rootUrl = "https://git.wpcarro.dev/"; + }; systemd.services.monzo-token-server = { enable = true;