Add a module for grav
This commit is contained in:
parent
ae659039d0
commit
3be151edee
|
@ -0,0 +1,26 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
backend = "docker";
|
||||||
|
containers."grav" = {
|
||||||
|
image = "lscr.io/linuxserver/grav:latest";
|
||||||
|
autoStart = true;
|
||||||
|
environment = {
|
||||||
|
TZ = "Europe/Zurich";
|
||||||
|
PUID = "100";
|
||||||
|
PGID = "101";
|
||||||
|
};
|
||||||
|
ports = [
|
||||||
|
"8080:80"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"/etc/timezone:/etc/timezone:ro"
|
||||||
|
"/etc/localtime:/etc/localtime:ro"
|
||||||
|
];
|
||||||
|
extraOptions = [
|
||||||
|
''--mount=type=volume,source=grav,target=/config,volume-driver=local,volume-opt=type=nfs,volume-opt=device=:/server_data/grav,"volume-opt=o=addr=10.7.89.108,rw,nfsvers=4.0,nolock,hard,noatime"''
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
})
|
})
|
||||||
"${inputs.self}/modules/nginx-acme-base"
|
"${inputs.self}/modules/nginx-acme-base"
|
||||||
"${inputs.self}/modules/docker"
|
"${inputs.self}/modules/docker"
|
||||||
|
"${inputs.self}/modules/grav"
|
||||||
"${inputs.self}/modules/haproxy"
|
"${inputs.self}/modules/haproxy"
|
||||||
"${inputs.self}/modules/heimdall"
|
"${inputs.self}/modules/heimdall"
|
||||||
"${inputs.self}/modules/rss-bridge"
|
"${inputs.self}/modules/rss-bridge"
|
||||||
|
@ -43,6 +44,7 @@
|
||||||
# This might create errors
|
# This might create errors
|
||||||
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
||||||
'';
|
'';
|
||||||
|
recommendedProxySettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"2li.ch" = {
|
"2li.ch" = {
|
||||||
serverAliases = [ "www.2li.ch" ];
|
serverAliases = [ "www.2li.ch" ];
|
||||||
|
|
Loading…
Reference in New Issue