feat(server): add mkWebApp module and glance web app
This commit is contained in:
parent
29c652e615
commit
2292baecf6
3 changed files with 78 additions and 0 deletions
17
modules/nixos/server/web-apps/glance/default.nix
Normal file
17
modules/nixos/server/web-apps/glance/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib.pantheon.modules) mkWebApp;
|
||||
cfg = config.server.web-apps.glance;
|
||||
in
|
||||
mkWebApp {
|
||||
inherit config;
|
||||
name = "glance";
|
||||
defaultPort = 8080;
|
||||
extraConfig = {
|
||||
services.glance = {
|
||||
enable = true;
|
||||
settings.server.host = "0.0.0.0";
|
||||
settings.server.port = cfg.port;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue