hippocampus: matrix: client: cinny -> element

This commit is contained in:
2026-02-14 18:16:07 -05:00
parent a188c3761b
commit 1ccf2f03d8

View File

@@ -4,41 +4,77 @@
addr = "unix:/run/nginx/cinny.sock"; addr = "unix:/run/nginx/cinny.sock";
}]; }];
locations."/" = { locations."/" = {
root = pkgs.cinny.override { root = pkgs.element-web.override {
conf = { conf = {
defaultHomeserver = 0; default_server_config = {
homeserverList = [ m.homeserver = {
"glia.club" base_url = "https://chat.glia.club";
]; server_name = "glia.club";
allowCustomHomeservers = false;
featuredCommunities = {
openAsDefault = false;
spaces = [
];
rooms = [
];
servers = [
];
}; };
hashRouter = {
enabled = false;
basename = "/";
}; };
disable_custom_urls = false;
disable_guests = true;
disable_login_language_selector = false;
disable_3pid_login = false;
force_verification = false;
brand = "Element";
integrations_ui_url = "https://scalar.vector.im/";
integrations_rest_url = "https://scalar.vector.im/api";
integrations_widgets_urls = [
"https://scalar.vector.im/_matrix/integrations/v1"
"https://scalar.vector.im/api"
"https://scalar-staging.vector.im/_matrix/integrations/v1"
"https://scalar-staging.vector.im/api"
];
default_widget_container_height = 280;
default_country_code = "GB";
show_labs_settings = true;
features = {};
default_federate = false;
default_theme = "light";
room_directory = {
servers = ["glia.club"];
};
enable_presence_by_hs_url = {
"https://glia.club" = false;
"https://chat.glia.club" = false;
};
setting_defaults = {
breadcrumbs = false;
};
jitsi = {
preferred_domain = "meet.element.io";
};
element_call = {
url = "https://call.element.io";
brand = "Element Call";
};
map_style_url = "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx";
}; };
}; };
extraConfig = '' extraConfig = ''
rewrite ^/config.json$ /config.json break; index index.html;
rewrite ^/manifest.json$ /manifest.json break;
rewrite ^/sw.js$ /sw.js break; # Set no-cache for the version, config and index.html
rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break; # so that browsers always check for a new copy of Element Web.
# NB http://your-domain/ and http://your-domain/? are also covered by this
rewrite ^/public/(.*)$ /public/$1 break; location = /index.html {
rewrite ^/assets/(.*)$ /assets/$1 break; add_header Cache-Control "no-cache";
}
rewrite ^(.+)$ /index.html break; location = /version {
add_header Cache-Control "no-cache";
}
# covers config.json and config.hostname.json requests as it is prefix.
location /config {
add_header Cache-Control "no-cache";
}
location /modules {
alias /modules;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
''; '';
}; };
}; };