forked from CCCHH/nix-infra
Fix indentation
This commit is contained in:
parent
2ae1ad3604
commit
d8d0236870
|
@ -34,19 +34,21 @@
|
||||||
return = "302 https://spaceapi.hamburg.ccc.de/";
|
return = "302 https://spaceapi.hamburg.ccc.de/";
|
||||||
};
|
};
|
||||||
|
|
||||||
locations."/.well-known/matrix/server" = {
|
# Add .well-known/matrix stuff for Matrix to work.
|
||||||
return = "200 '{\"m.server\": \"matrix.hamburg.ccc.de:443\"}'";
|
locations."/.well-known/matrix/server" = {
|
||||||
extraConfig = ''
|
return = "200 '{\"m.server\": \"matrix.hamburg.ccc.de:443\"}'";
|
||||||
add_header Content-Type application/json;
|
extraConfig = ''
|
||||||
'';
|
add_header Content-Type application/json;
|
||||||
};
|
'';
|
||||||
locations."/.well-known/matrix/client" = {
|
};
|
||||||
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.hamburg.ccc.de\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}}'";
|
locations."/.well-known/matrix/client" = {
|
||||||
extraConfig = ''
|
return = "200 '{\"m.homeserver\": {\"base_url\": \"https://matrix.hamburg.ccc.de\"}, \"m.identity_server\": {\"base_url\": \"https://vector.im\"}}'";
|
||||||
default_type application/json;
|
extraConfig = ''
|
||||||
add_header Access-Control-Allow-Origin *;
|
default_type application/json;
|
||||||
'';
|
add_header Access-Control-Allow-Origin *;
|
||||||
};
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Redirect pages starting with 4 digits for redirecting the old blog
|
# Redirect pages starting with 4 digits for redirecting the old blog
|
||||||
# article URLs.
|
# article URLs.
|
||||||
# We want to redirect /yyyy/mm/dd/slug to /blog/yyyy/mm/dd/slug, but we
|
# We want to redirect /yyyy/mm/dd/slug to /blog/yyyy/mm/dd/slug, but we
|
||||||
|
|
Loading…
Reference in a new issue