From f989f3edd7790c9b1a67dc99f074828211bbbe68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 8 Aug 2020 15:48:38 +0200 Subject: Add Denise aventurier website --- modules/private/websites/denise/aventuriers.nix | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/private/websites/denise/aventuriers.nix (limited to 'modules/private/websites/denise') diff --git a/modules/private/websites/denise/aventuriers.nix b/modules/private/websites/denise/aventuriers.nix new file mode 100644 index 0000000..33df53e --- /dev/null +++ b/modules/private/websites/denise/aventuriers.nix @@ -0,0 +1,26 @@ +{ lib, config, pkgs, ... }: +let + cfg = config.myServices.websites.denise.aventuriers; + varDir = "/var/lib/buildbot/outputs/denise/aventuriers"; +in { + options.myServices.websites.denise.aventuriers.enable = lib.mkEnableOption "enable Denise's Aventuriers website"; + + config = lib.mkIf cfg.enable { + services.websites.env.production.vhostConfs.denise_aventuriers = { + certName = "denise"; + addToCerts = true; + hosts = [ "aventuriers.syanni.eu" ]; + root = varDir; + extraConfig = [ + '' + + DirectoryIndex index.html + Options Indexes FollowSymLinks MultiViews Includes + AllowOverride None + Require all granted + + '' + ]; + }; + }; +} -- cgit v1.2.3