]>
Commit | Line | Data |
---|---|---|
5c9a5ec7 IB |
1 | { lib, config, pkgs, ... }: |
2 | let | |
3 | cfg = config.myServices.websites.librezo.website; | |
4 | varDir = "/var/lib/ftp/librezo/website"; | |
5 | apacheUser = config.services.httpd.Inte.user; | |
6 | apacheGroup = config.services.httpd.Inte.group; | |
7 | in { | |
8 | options.myServices.websites.librezo.website.enable = lib.mkEnableOption "enable Librezo website"; | |
9 | ||
10 | config = lib.mkIf cfg.enable { | |
11 | services.websites.env.integration.vhostConfs.librezo_website = { | |
12 | certName = "librezo"; | |
13 | addToCerts = true; | |
14 | hosts = ["web.librezo.immae.dev"]; | |
15 | root = varDir; | |
16 | extraConfig = [ | |
17 | '' | |
18 | <Directory ${varDir}> | |
19 | DirectoryIndex index.htm index.html | |
20 | Options Indexes FollowSymLinks MultiViews Includes | |
21 | AllowOverride None | |
22 | Require all granted | |
23 | </Directory> | |
24 | '' | |
25 | ]; | |
26 | }; | |
27 | }; | |
28 | } | |
29 | ||
30 |