bgt/comments.nix: initial commit
This commit is contained in:
parent
a0a859315b
commit
dd53f3b23f
26
2configs/bgt/comments.nix
Normal file
26
2configs/bgt/comments.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
let
|
||||||
|
configFile = config.sops.secrets."isso.conf".path;
|
||||||
|
in {
|
||||||
|
sops.secrets."isso.conf" = {
|
||||||
|
owner = "isso";
|
||||||
|
group = "isso";
|
||||||
|
};
|
||||||
|
|
||||||
|
services.isso.enable = true;
|
||||||
|
# override the startup to allow secrets in the configFile
|
||||||
|
# following relevant config is inside:
|
||||||
|
# [general]
|
||||||
|
# dbpath = /var/lib/comments.db
|
||||||
|
# host = https://blog.binaergewitter.de
|
||||||
|
# listen = http://localhost:9292
|
||||||
|
# public-endpoint = https://comments.binaergewitter.de
|
||||||
|
systemd.services.isso.serviceConfig.ExecStart = "${pkgs.isso}/bin/isso -c ${configFile}" ;
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."comments.binaergewitter.de" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableAcme = true;
|
||||||
|
useACMEHost = "download.binaergewitter.de";
|
||||||
|
locations."/".proxyPass = "http://localhost:9292";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue