move open gist to h001 from o001
This commit is contained in:
parent
7ae9357941
commit
ddd64258a2
5 changed files with 14 additions and 16 deletions
|
@ -6,6 +6,7 @@
|
|||
imports = [
|
||||
# common.nixosModules.containers.librechat
|
||||
common.nixosModules.containers.forgejo
|
||||
./opengist.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
35
hosts/h001/containers/opengist.nix
Normal file
35
hosts/h001/containers/opengist.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
let
|
||||
name = "opengist";
|
||||
hostDataDir = "/var/lib/${name}";
|
||||
|
||||
v_port = 6157;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
opengist = {
|
||||
user = "root";
|
||||
image = "ghcr.io/thomiceli/opengist:1";
|
||||
ports = [
|
||||
"127.0.0.1:${toString v_port}:${toString v_port}"
|
||||
];
|
||||
volumes = [
|
||||
"${hostDataDir}:/opengist"
|
||||
];
|
||||
environment = {
|
||||
OG_LOG_LEVEL = "info";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."gist.joshuabell.xyz" = {
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://127.0.0.1:${builtins.toString v_port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue