diff options
author | stuebinm | 2022-01-18 09:43:24 +0100 |
---|---|---|
committer | stuebinm | 2022-01-20 13:19:44 +0100 |
commit | 0bcabe1c4b1dd74af233674dfa6c6ec3011ce2c0 (patch) | |
tree | 5c58943f99245ff7f745f50b46c34ae288c3e503 /flora/services/dockerhub.nix | |
parent | db83a406bc6e63289e47ff5d2228c08430832655 (diff) |
restructuring directories
Diffstat (limited to 'flora/services/dockerhub.nix')
-rw-r--r-- | flora/services/dockerhub.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/flora/services/dockerhub.nix b/flora/services/dockerhub.nix new file mode 100644 index 0000000..c9b84b3 --- /dev/null +++ b/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"; +} |