From 4e50cb29cb60969fbf7f567f676a3de90b4d7eae Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 15 Aug 2020 17:51:28 -0300 Subject: Deploy "boneco" project at boneco.$TLD --- vps-configuration.env.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'vps-configuration.env.nix') diff --git a/vps-configuration.env.nix b/vps-configuration.env.nix index e330d2f..7bf5a4e 100644 --- a/vps-configuration.env.nix +++ b/vps-configuration.env.nix @@ -6,6 +6,7 @@ let nextcloudTLD = "$NEXTCLOUD_TLD"; gitTLD = "$GIT_TLD"; prosodyTLD = "$PROSODY_TLD"; + bonecoTLD = "$BONECO_TLD"; letsencryptEmail = "$LETSENCRYPT_EMAIL"; authorizedKey = "$AUTHORIZED_KEY"; userPassword = "$USER_PASSWORD"; @@ -23,6 +24,17 @@ let prosodyHTTPUploadTLD = "$PROSODY_HTTP_UPLOAD_TLD"; prosodyPort = "$PROSODY_PORT"; }; + boneco = pkgs.stdenv.mkDerivation { + name = "boneco"; + src = + fetchTarball "https://git.sr.ht/~euandreh/boneco/archive/master.tar.gz"; + phases = "unpackPhase buildPhase"; + buildPhase = '' + mkdir ${DOLLAR}out + cp index.html ${DOLLAR}out + cp favicon.ico ${DOLLAR}out + ''; + }; in { imports = [ ./hardware-configuration.nix ]; @@ -100,6 +112,11 @@ in { proxyPass = "http://localhost:${envsubstConfiguration.gitPort}"; }; }; + "${envsubstConfiguration.bonecoTLD}" = { + forceSSL = true; + enableACME = true; + root = boneco; + }; }; }; -- cgit v1.2.3