at 16.09-beta 1.2 kB view raw
1# This file defines the options that can be used both for the Apache 2# main server configuration, and for the virtual hosts. (The latter 3# has additional options that affect the web server as a whole, like 4# the user/group to run under.) 5 6{ lib }: 7 8with lib; 9 10{ 11 options = { 12 proxyPass = mkOption { 13 type = types.nullOr types.str; 14 default = null; 15 example = "http://www.example.org/"; 16 description = '' 17 Adds proxy_pass directive. 18 ''; 19 }; 20 21 index = mkOption { 22 type = types.nullOr types.str; 23 default = null; 24 example = "index.php index.html"; 25 description = '' 26 Adds index directive. 27 ''; 28 }; 29 30 tryFiles = mkOption { 31 type = types.nullOr types.str; 32 default = null; 33 example = "$uri =404"; 34 description = '' 35 Adds try_files directive. 36 ''; 37 }; 38 39 root = mkOption { 40 type = types.nullOr types.path; 41 default = null; 42 example = "/your/root/directory"; 43 description = '' 44 Root directory for requests. 45 ''; 46 }; 47 48 extraConfig = mkOption { 49 type = types.lines; 50 default = ""; 51 description = '' 52 These lines go to the end of the location verbatim. 53 ''; 54 }; 55 }; 56} 57