minio: Add caddy-proxy

This commit is contained in:
Erwin Boskma 2024-06-12 21:13:44 +02:00
parent c6bd6f90d9
commit 8ab3ae5a5c
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 22 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ self, ... }:
{ modulesPath, ... }:
{ self, caddy-with-plugins, ... }:
{ pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/virtualisation/lxc-container.nix")
@ -14,6 +14,21 @@
enable = true;
server = true;
};
caddy-proxy = {
enable = true;
package = caddy-with-plugins.packages.${pkgs.system}.caddy-with-cloudflare;
proxyHosts = [
{
externalHostname = "minio.datarift.nl";
proxyAddress = "127.0.0.1:9000";
external = true;
}
{
externalHostname = "minio-admin.datarift.nl";
proxyAddress = "127.0.0.1:9001";
}
];
};
services = {
minio.enable = true;
};
@ -74,6 +89,7 @@
minio-root-credentials = { };
minio_backup_ssh_key = { };
minio_backup_pass = { };
caddy-env = { };
};
system.stateVersion = "24.05";

View file

@ -1,6 +1,7 @@
minio-root-credentials: ENC[AES256_GCM,data:IR2xlQ/pXHUA0baJTe9J+iH4qsw3dHeCP+oSQ3yZohQSm1mrXil7HR1NlsI2sbQVQM1GAJcmPytrn7z3YocrainnDv3WZ0AeRqwyEtItC2cXfw3mfh+SIeq2sX2jkYDycuW0J7jRdCBV+Bs=,iv:A7cgR9ykXY4qkixDp699wzNLs4AEVEJRJ8PxzOAnCqU=,tag:++C4ejM5h8wM95G2N6PZmg==,type:str]
minio_backup_ssh_key: ENC[AES256_GCM,data:pVyhIAa+7GEgOouwgSYgN6rFjm9nZEesYJvrUIA0SZ9hXW4tnuc01DMLoGLTqYLqtlhpEtTtfMd0no55sHesCqru+5z3I4b5YlYEMoPR3ce0sDTV3lxnRSJGK+O5YRxnza1fG4RUAaOt0neiRma7F8+jFFJJPHksy8qrzYd3bQFiLEaRTJdyv9M5b2ETsi4A9ZVDPcwk34TEcrldEQIVIQU8rl0LPyN7WhaaHwjospb0Fav8U0w4PYCuqsBVmX3ssD7OZw1vJjz6eVB3CeUe91VbDfx6O3ahrUb4E9LWgWh4VlsGYtz7/ThNRR8n5DdYxUnA5aLDSkaEv64WBcUmA5VA6IZ7/jeMr4bGBf5f0rxlBMXqOdauBNeO/o5UwdHN8EV5Hafpn5XuLQ7sTSknTzxi0bo9mR63SWulW/64I6iN9kSEPs6OtKMNsaoYt9fyaGcPEEOAXLPauXMk/ddXK5l3D/GNLShwuH2nKWaoDCIvDjBx7rwW5wZynPxlTYlB7Pj1rkXK2J9nbRObTYps,iv:F82onSArHBV7z2BZ83yZUWPTf+Nj/yGwPckhj1JC3A4=,tag:e/QwEifl96Vtuf1jeItVhQ==,type:str]
minio_backup_pass: ENC[AES256_GCM,data:t6mh1Fuj+CNbRCi6zgM/IDUc7IaHnsWcqsWKtTSzfO0gmAkfpGcvqe1KhDrgQiYqwVSlzYfIa5bsYrrgrePejmkt2hcTBeCM51dBIPJSqx6b47MAii/nEvdksxUENAZiUxP6ZSfrLOs2dkuEbxOTXfBC4z/bISKvst3VILH7ZqM=,iv:Pn0PUCCvqZQmV3Hkjd5CbSRR3sHGZsBcZdhUCgSZb0U=,tag:3Vru8OLVa72e677DEy6LvQ==,type:str]
caddy-env: ENC[AES256_GCM,data:zhpmvdUyXZGAMpvlPSVhkDApgLKOvUvhh37lNQI8hjCz2zvZKLwQHI99zeq1M7w7GN4xfDyN,iv:F5MQz8tMIWaJWls1lkmaw0wzOVaZdDdVEYke0hDYExs=,tag:ngsGPqiJSulR4jQpHfta5w==,type:str]
sops:
kms: []
gcp_kms: []
@ -34,8 +35,8 @@ sops:
d0NWMXF3R2lwL2RQRFVFY3RteGFPVEkKACtGvv9tx9H34QW7vbLswFBsaQHTWwXc
L2n3760iwAnVad4Aw7cQHUwzEUopWwhvg10BTrhi67CB9AG73yPNmA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-09-11T14:19:07Z"
mac: ENC[AES256_GCM,data:G/hYRqQxQxdij3hNsZcaQvx/SA95FeEA9q2DlC/Bkx1x0ApM7qG7eVNeVtqlYHkUd7IsylKyq1lf4Z4GQMj0Cq2sMZRn0Z6InUq67FSHqTd0JInZPQGDY5DDSD0WNuDSIHPJLWd1cC+onSpvBtx2xqxGb9HGNAJo+sGM4mlUBvU=,iv:E5pzAv+WRx8lPofUGZcH39lEPZa0MIn/m/ldX4I9PdU=,tag:a7pnkayI+U04G1KBrBEpOg==,type:str]
lastmodified: "2024-06-12T19:17:15Z"
mac: ENC[AES256_GCM,data:xW5JuueKrim2QdsKS7l4TdLymIFzvYLHz5wNBHs5D9nzIPvT28z8wf2qiD9o2M7QSHnbr5ZpltU5cfikCfEaJV5C0a9JtcL9cGfpMX43Aq5B+g6UsOs6On21F7qNt5XV6cc0Shn/Mk/lPkEaiHXum2ufbouVluqY+oiywFM3erE=,iv:dC6aBBfDKOW31XKkk/6lXYATe5hjSIRPzeijPWBATW4=,tag:5uxkapWz7oFUT5xnWRrp0A==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
version: 3.8.1