refactor(nixos): derive RomM virtual host
This commit is contained in:
@@ -53,12 +53,6 @@ in
|
||||
description = "Host path mounted as RomM's user assets.";
|
||||
};
|
||||
|
||||
virtualHost = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
example = "romm.example.org";
|
||||
description = "Public host name configured in RomM's local nginx.";
|
||||
};
|
||||
|
||||
igdbClientIdSecret = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "services/romm/igdb/client-id";
|
||||
@@ -151,7 +145,7 @@ in
|
||||
database.createLocally = true;
|
||||
redis.createLocally = true;
|
||||
watcher.enable = true;
|
||||
nginx.virtualHost = cfg.virtualHost;
|
||||
nginx.virtualHost = cfg.reverseProxy.route.domain;
|
||||
inherit environmentFile;
|
||||
};
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
romsPath = "/pikachu/media/games/emulation/roms";
|
||||
biosPath = "/pikachu/media/games/emulation/bios";
|
||||
usersPath = "/pikachu/media/games/emulation/users";
|
||||
virtualHost = "games.alexion.dev";
|
||||
reverseProxy = {
|
||||
enable = true;
|
||||
route = {
|
||||
|
||||
Reference in New Issue
Block a user