summaryrefslogtreecommitdiff
path: root/flora/services/dockerhub.nix
blob: c9b84b31ed8bef736c52061951b2adc55865cba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:

{
  services.dockerRegistry = {
    enable = true;
    port = 6000;
    enableRedisCache = false;
    extraConfig = {
      storage.maintenance.readonly.enabled = true;
    };
  };

  services.nginx.virtualHosts."registry.stuebinm.eu" = {
    locations."/" = {
      proxyPass = "http://localhost:6000";
      proxyWebsockets = true;
    };
    enableACME = true;
    forceSSL = true;
  };

  services.nginx.clientMaxBodySize = "0";
}