mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-25 18:24:41 +02:00
treewide: remove duplicate port settings
This commit is contained in:
parent
375424cb9f
commit
b6b9972d60
21 changed files with 58 additions and 143 deletions
|
@ -7,25 +7,18 @@ in
|
|||
{
|
||||
options.my.services.tandoor-recipes = with lib; {
|
||||
enable = mkEnableOption "Tandoor Recipes";
|
||||
port = mkOption {
|
||||
type = types.port;
|
||||
default = 8089;
|
||||
example = 8080;
|
||||
description = "Internal port";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.tandoor-recipes = {
|
||||
enable = true;
|
||||
inherit (cfg) port;
|
||||
};
|
||||
|
||||
# Proxy to Tandoor-Recipes
|
||||
my.services.webserver.virtualHosts = [
|
||||
{
|
||||
subdomain = "recipes";
|
||||
inherit (cfg) port;
|
||||
inherit (config.services.tandoor-recipes) port;
|
||||
}
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue