fix(nixos): defer RomM proxy routing
This commit is contained in:
@@ -53,6 +53,12 @@ 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";
|
||||
@@ -139,7 +145,7 @@ in
|
||||
database.createLocally = true;
|
||||
redis.createLocally = true;
|
||||
watcher.enable = true;
|
||||
nginx.virtualHost = cfg.reverseProxy.route.domain;
|
||||
nginx.virtualHost = cfg.virtualHost;
|
||||
inherit environmentFile;
|
||||
};
|
||||
|
||||
|
||||
@@ -91,21 +91,13 @@
|
||||
guests.romm = {
|
||||
enable = true;
|
||||
vlan = 20;
|
||||
address = "10.23.20.44";
|
||||
dataPath = "/pikachu/data/romm";
|
||||
postgresqlPath = "/pikachu/data/romm/postgresql";
|
||||
redisPath = "/pikachu/data/romm/redis";
|
||||
romsPath = "/pikachu/media/games/emulation/roms";
|
||||
biosPath = "/pikachu/media/games/emulation/bios";
|
||||
usersPath = "/pikachu/media/games/emulation/users";
|
||||
reverseProxy = {
|
||||
enable = true;
|
||||
route = {
|
||||
domain = "romm.alexion.dev";
|
||||
protocol = "https";
|
||||
port = 80;
|
||||
};
|
||||
};
|
||||
virtualHost = "romm.alexion.dev";
|
||||
};
|
||||
|
||||
guests.reverse-proxy = {
|
||||
|
||||
Reference in New Issue
Block a user