Compare commits
No commits in common. "bc8f7a990bd4ac1d613b6555cfc94967004af119" and "81617b55f289ce3e731c198bf0465885617d1723" have entirely different histories.
bc8f7a990b
...
81617b55f2
1 changed files with 2 additions and 9 deletions
|
|
@ -8,13 +8,12 @@ let
|
||||||
domain = "ente.kylekrein.com";
|
domain = "ente.kylekrein.com";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets."services/minio" = {owner = "minio";};
|
sops.secrets."services/minio" = {};
|
||||||
services.minio = {
|
services.minio = {
|
||||||
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";
|
listenAddress = ":21939";
|
||||||
consoleAddress = ":21940";
|
|
||||||
# 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
|
||||||
|
|
@ -24,11 +23,6 @@ in
|
||||||
systemd.services.minio.environment.MINIO_SERVER_URL = "https://s3.kylekrein.com";
|
systemd.services.minio.environment.MINIO_SERVER_URL = "https://s3.kylekrein.com";
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
virtualHosts."web.s3.kylekrein.com" = {
|
|
||||||
forceSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/".proxyPass = "http://localhost:21940";
|
|
||||||
};
|
|
||||||
virtualHosts."s3.kylekrein.com" = {
|
virtualHosts."s3.kylekrein.com" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
@ -67,9 +61,8 @@ in
|
||||||
apps.cast = "https://cast.${domain}";
|
apps.cast = "https://cast.${domain}";
|
||||||
public-albums = "https://albums.${domain}";
|
public-albums = "https://albums.${domain}";
|
||||||
s3 = {
|
s3 = {
|
||||||
|
use_path_style_urls = true;
|
||||||
b2-eu-cen = {
|
b2-eu-cen = {
|
||||||
are_local_buckets = false;
|
|
||||||
use_path_style_urls = true;
|
|
||||||
endpoint = "https://s3.kylekrein.com";
|
endpoint = "https://s3.kylekrein.com";
|
||||||
region = "us-east-1";
|
region = "us-east-1";
|
||||||
bucket = "ente";
|
bucket = "ente";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue