about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-04-05T15·36+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-04-05T15·36+0100
commit5c378aadcb5cd9c02cb617836c2bcaa950b9574a (patch)
tree32d604e6c48489961fc8eafcc9064ec12826b209
parent5e2f54b0fbac0abde1255f3d50b94b603e5c522c (diff)
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.
-rw-r--r--nixos/socrates/configuration.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix
index 564ee48e860b..fb0964aaea37 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;