set extra options
This commit is contained in:
parent
4067cac4ba
commit
b3e07df279
1 changed files with 22 additions and 0 deletions
|
|
@ -51,5 +51,27 @@
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
(lib.mkIf (config.osbmModules.services.nginx.enable && config.osbmModules.services.forgejo.enable) {
|
||||||
|
services.nginx.virtualHosts."${config.services.forgejo.settings.server.DOMAIN}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/".proxyPass = "http://localhost:3000";
|
||||||
|
locations."/".proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.mkIf
|
||||||
|
(
|
||||||
|
config.osbmModules.services.forgejo.enable
|
||||||
|
&& config.osbmModules.hardware.disko.zfs.root.impermanenceRoot
|
||||||
|
)
|
||||||
|
{
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
hideMounts = true;
|
||||||
|
directories = [
|
||||||
|
"/var/lib/forgejo"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue