From b08e8f21a4da329f0507eef1781a2e6922c27dc5 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 14 Aug 2021 18:49:28 +0200 Subject: add ihatemoney web service --- config/default.nix | 1 + config/ihatemoney.nix | 16 ++++++++++++++++ config/networking.nix | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 config/ihatemoney.nix (limited to 'config') diff --git a/config/default.nix b/config/default.nix index 39de497..ffbbef3 100644 --- a/config/default.nix +++ b/config/default.nix @@ -6,6 +6,7 @@ (modulesPath + "/profiles/minimal.nix") ./boot.nix ./environment.nix + ./ihatemoney.nix ./hardware-configuration.nix ./networking.nix ./searx diff --git a/config/ihatemoney.nix b/config/ihatemoney.nix new file mode 100644 index 0000000..5eb086b --- /dev/null +++ b/config/ihatemoney.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + services.ihatemoney = { + enable = true; + enableAdminDashboard = true; + adminHashedPassword = + "pbkdf2:sha256:150000$s78RCYkJ$9c15a62ed1c89625cb78b5bde87d03b6dd1a03831afa4dbb2abb15ea4c1e150b"; + uwsgiConfig = { http = ":8000"; }; + extraConfig = '' + APPLICATION_ROOT = "https://quentin.aristote.fr/money/" + ''; + }; + + services.nginx.virtualHosts."quentin.aristote.fr".locations."/money/".proxyPass = "http://127.0.0.1:8000/"; +} diff --git a/config/networking.nix b/config/networking.nix index a9a3494..0a103c4 100644 --- a/config/networking.nix +++ b/config/networking.nix @@ -36,7 +36,7 @@ }; "quentin.aristote.fr" = { - root = "${pkgs.personal.academic-webpage}"; + locations."/".root = "${pkgs.personal.academic-webpage}"; forceSSL = true; enableACME = true; }; -- cgit v1.2.3