summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/shiori.nix
blob: 94a5e9dc8727542dc11bbadc16c7edb5f1c725ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{config, lib, pkgs, ...}:
let
  web_port = 9011;
  statedir = "/var/lib/shiori";
in {
  state = [ "/var/lib/private/shiori" ]; # when using dynamicUser
  services.shiori = {
    enable = true;
    port = web_port;
    address = "127.0.0.1";
  };
  services.nginx.virtualHosts."bookmark.euer.krebsco.de" = {
    forceSSL = true;
    enableACME = true;

    locations."/" = {
      proxyPass = "http://127.0.0.1:${toString web_port}/";
    };
  };
}