This commit is contained in:
Aleksandr Lebedev 2025-12-07 00:43:34 +01:00
parent f9d3344607
commit 2824e9ba44
2 changed files with 26 additions and 21 deletions

View file

@ -112,6 +112,7 @@ in {
custom.impermanence = enabled; custom.impermanence = enabled;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ente-cli
tmux tmux
icloudpd icloudpd
immich-go immich-go

View file

@ -13,10 +13,11 @@ in
enable = true; enable = true;
# ente's config must match this region! # ente's config must match this region!
region = "us-east-1"; region = "us-east-1";
listenAddress = ":21939";
# Please use a file, agenix or sops-nix to securely store your root user password! # Please use a file, agenix or sops-nix to securely store your root user password!
# MINIO_ROOT_USER=your_root_user # MINIO_ROOT_USER=your_root_user
# MINIO_ROOT_PASSWORD=a_randomly_generated_long_password # MINIO_ROOT_PASSWORD=a_randomly_generated_long_password
rootCredentialsFile = config.sops.secrets."services/minio".path;; rootCredentialsFile = config.sops.secrets."services/minio".path;
}; };
systemd.services.minio.environment.MINIO_SERVER_URL = "https://s3.kylekrein.com"; systemd.services.minio.environment.MINIO_SERVER_URL = "https://s3.kylekrein.com";
@ -24,8 +25,8 @@ in
services.nginx = { services.nginx = {
virtualHosts."s3.kylekrein.com" = { virtualHosts."s3.kylekrein.com" = {
forceSSL = true; forceSSL = true;
useACME = true; enableACME = true;
locations."/".proxyPass = "http://localhost:9000"; locations."/".proxyPass = "http://localhost:21939";
# determine max file upload size # determine max file upload size
extraConfig = '' extraConfig = ''
client_max_body_size 16G; client_max_body_size 16G;
@ -77,6 +78,9 @@ in
}; };
# generate with: openssl rand -base64 32 # generate with: openssl rand -base64 32
jwt.secret._secret = config.sops.secrets."services/ente/jwt".path; jwt.secret._secret = config.sops.secrets."services/ente/jwt".path;
internal = {
admin = 1580559962386438;
disable-registration = true;
}; };
}; };
}; };