Compare commits

...

3 Commits

2 changed files with 26 additions and 3 deletions

View File

@@ -58,7 +58,7 @@
MINIO_VOLUMES = "/mnt/disk1/minio"; MINIO_VOLUMES = "/mnt/disk1/minio";
# Expandable later, but each pool must have more than 1 disk. # Expandable later, but each pool must have more than 1 disk.
# https://github.com/minio/minio/issues/16711 # https://github.com/minio/minio/issues/16711
MINIO_SERVER_URL = "http://minio1.minio1.tailnet:9000"; MINIO_SERVER_URL = "http://100.64.0.5:9000";
MINIO_PROMETHEUS_URL = "http://100.64.0.5:9999"; MINIO_PROMETHEUS_URL = "http://100.64.0.5:9999";
MINIO_PROMETHEUS_JOB_ID = "minio-job"; MINIO_PROMETHEUS_JOB_ID = "minio-job";
}; };

View File

@@ -4,7 +4,30 @@
addr = "unix:/run/nginx/cinny.sock"; addr = "unix:/run/nginx/cinny.sock";
}]; }];
locations."/" = { locations."/" = {
root = pkgs.cinny; root = pkgs.cinny.override {
conf = {
defaultHomeserver = 0;
homeserverList = [
"glia.club"
];
allowCustomHomeservers = false;
featuredCommunities = {
openAsDefault = false;
spaces = [
];
rooms = [
];
servers = [
];
};
hashRouter = {
enabled = false;
basename = "/";
};
};
};
extraConfig = '' extraConfig = ''
rewrite ^/config.json$ /config.json break; rewrite ^/config.json$ /config.json break;
rewrite ^/manifest.json$ /manifest.json break; rewrite ^/manifest.json$ /manifest.json break;
@@ -22,7 +45,7 @@
services.caddy.virtualHosts = { services.caddy.virtualHosts = {
"glia.club, glia.club:8448" = { "glia.club, glia.club:8448" = {
extraConfig = lib.mkAfter '' extraConfig = lib.mkAfter ''
reverse_proxy unix//run/nginx/cinny.sock redir https://chat.glia.club
''; '';
}; };