feat(redhead): add nextcloud-docker-dev #116

closed
opened by a.starrysky.fyi targeting main from private/minion/push-oqywmpqruopz

I'm using https://github.com/juliusknorr/nextcloud-docker-dev to test some changes to a nextcloud plugin, as the plugin needs a more recent version of Nextcloud than is in nixpkgs.

To be available, I need to set up my hosts file correctly and forward this over nginx for my other devices.

Changed files
+66
packetmix
+64
packetmix/systems/redhead/nextcloud-docker-dev.nix
···
··· 1 + { 2 + networking.hosts = { 3 + "127.0.0.1" = [ 4 + "nextcloud.local" 5 + "nextcloud2.local" 6 + "nextcloud3.local" 7 + "stable16.local" 8 + "stable17.local" 9 + "stable18.local" 10 + "stable19.local" 11 + "stable20.local" 12 + "stable21.local" 13 + "stable22.local" 14 + "stable23.local" 15 + "stable24.local" 16 + "stable25.local" 17 + "stable26.local" 18 + "stable27.local" 19 + "stable28.local" 20 + "stable29.local" 21 + "stable30.local" 22 + "stable31.local" 23 + "stable32.local" 24 + "mail.local" 25 + "sso.local" 26 + "imap.local" 27 + "collabora.local" 28 + "codedev.local" 29 + "onlyoffice.local" 30 + "proxy.local" 31 + "hpb.local" 32 + "push.local" 33 + "keycloak.local" 34 + "portal.local" 35 + "gs1.local" 36 + "gs2.local" 37 + "lookup.local" 38 + "elasticsearch.local" 39 + "elasticsearch-ui.local" 40 + "pgadmin.local" 41 + "phpmyadmin.local" 42 + "talk-signaling.local" 43 + "talk-recording.local" 44 + ]; 45 + }; 46 + 47 + services.nginx.virtualHosts."nextcloud.docker.dev.redhead.starrysky.fyi" = { 48 + addSSL = true; 49 + enableACME = true; 50 + acmeRoot = null; 51 + 52 + locations."/" = { 53 + proxyPass = "http://127.0.0.1:8062"; 54 + recommendedProxySettings = true; 55 + proxyWebsockets = true; 56 + }; 57 + }; 58 + 59 + security.acme.certs."nextcloud.docker.dev.redhead.starrysky.fyi" = { 60 + dnsProvider = "cloudflare"; 61 + environmentFile = "/secrets/acme/environmentFile"; 62 + email = "skyler.grey@collabora.com"; 63 + }; 64 + }
+2
packetmix/systems/redhead/nextcloud.nix
··· 68 email = "skyler.grey@collabora.com"; 69 }; 70 71 services.nginx.virtualHosts."collabora.dev.redhead.starrysky.fyi" = { 72 addSSL = true; 73 enableACME = true;
··· 68 email = "skyler.grey@collabora.com"; 69 }; 70 71 + networking.firewall.allowedTCPPorts = [ 80 443 9980 ]; 72 + 73 services.nginx.virtualHosts."collabora.dev.redhead.starrysky.fyi" = { 74 addSSL = true; 75 enableACME = true;