mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Fix chat and sync 3rdl domains
This commit is contained in:
parent
ee3539b333
commit
c432e26e69
2 changed files with 22 additions and 6 deletions
|
@ -97,6 +97,14 @@ in serverSystemConfiguration {
|
|||
|
||||
locations."/_matrix".proxyPass = "http://[::]:${toString synapsePort}";
|
||||
locations."/_synapse/client".proxyPass = "http://[::]:${toString synapsePort}";
|
||||
|
||||
locations."/".proxyPass = "http://[::]:${toString config.services.site.port}/404/";
|
||||
locations."/assets" = {
|
||||
proxyPass = "http://[::]:${toString config.services.site.port}/assets";
|
||||
extraConfig = ''
|
||||
add_header Cache-Control "public, max-age=10800, immutable";
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
services.matrix-sliding-sync = enabled {
|
||||
|
@ -114,5 +122,13 @@ in serverSystemConfiguration {
|
|||
|
||||
locations."~ ^(\\/_matrix|\\/_synapse\\/client)"
|
||||
.proxyPass = "http://[::]:${toString syncPort}";
|
||||
|
||||
locations."/".proxyPass = "http://[::]:${toString config.services.site.port}/404/";
|
||||
locations."/assets" = {
|
||||
proxyPass = "http://[::]:${toString config.services.site.port}/assets";
|
||||
extraConfig = ''
|
||||
add_header Cache-Control "public, max-age=10800, immutable";
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,10 +4,6 @@ let
|
|||
inherit (config.networking) domain;
|
||||
|
||||
port = 8003;
|
||||
|
||||
cacheConfig = ''
|
||||
add_header Cache-Control "public, max-age=10800, immutable";
|
||||
'';
|
||||
in serverSystemConfiguration {
|
||||
services.site = enabled {
|
||||
inherit port;
|
||||
|
@ -17,7 +13,9 @@ in serverSystemConfiguration {
|
|||
locations."/".proxyPass = "http://[::]:${toString port}";
|
||||
locations."/assets" = {
|
||||
proxyPass = "http://[::]:${toString port}/assets";
|
||||
extraConfig = cacheConfig;
|
||||
extraConfig = ''
|
||||
add_header Cache-Control "public, max-age=10800, immutable";
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -31,7 +29,9 @@ in serverSystemConfiguration {
|
|||
locations."/".proxyPass = "http://[::]:${toString port}/404/";
|
||||
locations."/assets" = {
|
||||
proxyPass = "http://[::]:${toString port}/assets";
|
||||
extraConfig = cacheConfig;
|
||||
extraConfig = ''
|
||||
add_header Cache-Control "public, max-age=10800, immutable";
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue