moved open-gist to o001
This commit is contained in:
parent
dc9f1a278b
commit
dccf075b17
6 changed files with 208 additions and 187 deletions
38
hosts/oracle/o001/containers/opengist.nix
Normal file
38
hosts/oracle/o001/containers/opengist.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
let
|
||||
name = "opengist";
|
||||
hostDataDir = "/var/lib/${name}";
|
||||
|
||||
v_port = 6157;
|
||||
in
|
||||
{
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
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" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://127.0.0.1:${builtins.toString v_port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue