From cbe5666097a0bf018eac0cf48ae6914db3bfe483 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 5 Oct 2021 15:14:42 +0200 Subject: add docker registry (used mostly to host a guix container that just contains the guix daemon and not much else, since no such think appears to exist elsewhere) --- hosts/flora/services/dockerhub.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hosts/flora/services/dockerhub.nix (limited to 'hosts/flora/services') diff --git a/hosts/flora/services/dockerhub.nix b/hosts/flora/services/dockerhub.nix new file mode 100644 index 0000000..c9b84b3 --- /dev/null +++ b/hosts/flora/services/dockerhub.nix @@ -0,0 +1,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"; +} -- cgit v1.2.3