made s3 buckets work
This commit is contained in:
parent
de8a334588
commit
cea37fb8ca
13 changed files with 76 additions and 103 deletions
nixos
|
@ -48,6 +48,7 @@ with lib;
|
|||
locations."/" = {
|
||||
root = pkgs.landingpage.override {
|
||||
jsonConfig = [
|
||||
{ title = config.networking.hostName; }
|
||||
{ title = "System Links"; }
|
||||
{
|
||||
text = "Syncthings";
|
||||
|
|
|
@ -40,6 +40,7 @@ let
|
|||
"loki.chungus" = hosts.chungus;
|
||||
"prometheus.chungus" = hosts.chungus;
|
||||
"s3.chungus" = hosts.chungus;
|
||||
"minio.chungus" = hosts.chungus;
|
||||
"sync.chungus" = hosts.chungus;
|
||||
"tdarr.chungus" = hosts.chungus;
|
||||
"trilium.chungus" = hosts.chungus;
|
||||
|
|
|
@ -13,6 +13,10 @@ with lib;
|
|||
units
|
||||
|
||||
parallel
|
||||
|
||||
wget
|
||||
curl
|
||||
|
||||
];
|
||||
}
|
||||
(mkIf config.gui.enable {
|
||||
|
|
|
@ -3,11 +3,21 @@
|
|||
services.minio = {
|
||||
enable = true;
|
||||
region = "home";
|
||||
rootCredentialsFile = config.sops.secrets.minioRootCredentials.path;
|
||||
};
|
||||
|
||||
sops.secrets.minioRootCredentials = { };
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."s3.${config.networking.hostName}.private" = {
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://localhost:9000";
|
||||
};
|
||||
};
|
||||
virtualHosts."minio.${config.networking.hostName}.private" = {
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyWebsockets = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue