mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
privatebin: Add option for branding
This commit is contained in:
parent
d396ee6559
commit
223a231f71
2 changed files with 9 additions and 1 deletions
|
|
@ -67,6 +67,7 @@
|
|||
privatebin = {
|
||||
enable = true;
|
||||
domain = "pastebin.${sproutedDomain}";
|
||||
branding.name = "SproutedBin";
|
||||
};
|
||||
|
||||
openspeedtest = {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,10 @@ in
|
|||
type = lib.types.port;
|
||||
default = 61009;
|
||||
};
|
||||
branding.name = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = "PrivateBin";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
|
@ -34,7 +38,10 @@ in
|
|||
package = pkgs-unstable.privatebin; # Unstable to get version 2.0
|
||||
enableNginx = true;
|
||||
virtualHost = "privatebin";
|
||||
settings.main.basepath = "https://${cfg.domain}";
|
||||
settings.main = {
|
||||
basepath = "https://${cfg.domain}";
|
||||
inherit (cfg.branding) name;
|
||||
};
|
||||
};
|
||||
|
||||
nginx.virtualHosts.privatebin.listen = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue