File tree Expand file tree Collapse file tree
modules/nixos/server/proxy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2+ isThisIOPrimaryHost ,
23 getIOPrimaryHostAttr ,
34 ...
45} :
2526 functionTo
2627 deferredModule
2728 ;
28-
2929in
3030{
3131 options . server . proxy = {
3232 domain = mkOption {
3333 type = str ;
34- default = getIOPrimaryHostAttr "server.proxy.domain" ;
35- defaultText = literalExpression "getIOPrimaryHostAttr \" server.proxy.domain\" " ;
36- description = "The base domain for all virtual hosts." ;
34+ default = if isThisIOPrimaryHost then null else getIOPrimaryHostAttr "server.proxy.domain" ;
35+ defaultText = literalExpression "if isThisIOPrimaryHost then null else getIOPrimaryHostAttr \" server.proxy.domain\" " ;
36+ description = ''
37+ The base domain for all virtual hosts.
38+ Must be set explicitly on the IO primary host (`server.ioPrimaryHost`);
39+ other hosts read it from the primary host's configuration.
40+ '' ;
3741 } ;
3842
3943 extensions = mkOption {
You can’t perform that action at this time.
0 commit comments