Make RMO domain name a config option
This commit is contained in:
parent
0b8cedf800
commit
f86239a8ce
3 changed files with 7 additions and 2 deletions
|
|
@ -24,6 +24,7 @@
|
|||
];
|
||||
myModules = {
|
||||
nidus-sync = {
|
||||
domainNameReport = "staging-report.mosquitoes.online";
|
||||
domainNameSync = "staging-sync.nidus.cloud";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
];
|
||||
myModules = {
|
||||
nidus-sync = {
|
||||
domainNameReport = "report.mosquitoes.online";
|
||||
domainNameSync = "sync.nidus.cloud";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ let
|
|||
databaseName = nidusName;
|
||||
databaseUser = nidusName;
|
||||
dataDirectory = /mnt/bigdisk/nidus-sync;
|
||||
domainNameReport = "report.mosquitoes.online";
|
||||
group = nidusName;
|
||||
nidusName = "nidus-sync";
|
||||
nidus-sync-pkg = inputs.nidus-sync.packages.x86_64-linux.default;
|
||||
|
|
@ -17,6 +16,10 @@ let
|
|||
environmentFile = "/var/run/secrets/${nidusName}-env";
|
||||
in {
|
||||
options.myModules.nidus-sync = {
|
||||
domainNameReport = mkOption {
|
||||
example = "report.mosquitoes.online";
|
||||
type = types.str;
|
||||
};
|
||||
domainNameSync = mkOption {
|
||||
example = "sync.nidus.cloud";
|
||||
type = types.str;
|
||||
|
|
@ -29,7 +32,7 @@ in {
|
|||
ffmpeg
|
||||
nidus-sync-pkg
|
||||
];
|
||||
services.caddy.virtualHosts."${domainNameReport}" = {
|
||||
services.caddy.virtualHosts."${cfg.domainNameReport}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy http://127.0.0.1:${toString port}
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue