2023-07-24 01:12:36 +02:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx.virtualHosts."nekover.se" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2023-10-10 15:21:16 +02:00
|
|
|
listen = [{
|
|
|
|
addr = "localhost";
|
|
|
|
port = 8443;
|
|
|
|
ssl = true;
|
|
|
|
extraParameters = ["proxy_protocol"];
|
|
|
|
}];
|
2023-07-24 01:12:36 +02:00
|
|
|
locations."/.well-known/matrix/server" = {
|
|
|
|
return = "200 '{\"m.server\": \"matrix.nekover.se:443\"}'";
|
|
|
|
extraConfig = ''
|
|
|
|
add_header Content-Type application/json;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
locations."/.well-known/matrix/client" = {
|
2024-09-10 19:04:55 +02:00
|
|
|
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.nekover.se\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}, \"org.matrix.msc3575.proxy\": {\"url\": \"https://matrix.nekover.se\"}, \"m.authentication\": {\"issuer\": \"https://id.nekover.se\", \"account\": \"https://id.nekover.se/realms/nekoverse/account/\"}}'";
|
2023-07-24 01:12:36 +02:00
|
|
|
extraConfig = ''
|
|
|
|
default_type application/json;
|
|
|
|
add_header Access-Control-Allow-Origin *;
|
|
|
|
'';
|
|
|
|
};
|
2023-09-28 04:57:17 +02:00
|
|
|
extraConfig = ''
|
|
|
|
set_real_ip_from 127.0.0.1;
|
|
|
|
real_ip_header proxy_protocol;
|
|
|
|
'';
|
2023-07-24 01:12:36 +02:00
|
|
|
};
|
|
|
|
}
|