Fix caddy config
This commit is contained in:
parent
30cccb51bc
commit
752bd4aab3
3 changed files with 6 additions and 9 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
handle /.well-known/matrix/server {
|
handle /.well-known/matrix/server {
|
||||||
respond `{"m.server": "jankremer.de:443"}` 200 {
|
header Content-Type application/json
|
||||||
header Content-Type application/json
|
respond `{"m.server": "jankremer.de:443"}` 200
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handle /.well-known/matrix/client {
|
handle /.well-known/matrix/client {
|
||||||
respond `{"m.homeserver": {"base_url": "https://jankremer.de"}}` 200 {
|
header Content-Type application/json
|
||||||
header Content-Type application/json
|
header Access-Control-Allow-Origin *
|
||||||
header Access-Control-Allow-Origin *
|
respond `{"m.homeserver": {"base_url": "https://jankremer.de"}}` 200
|
||||||
}
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /var/www/jankremer.de 755 root root -"
|
"d /var/www/jankremer.de 755 jan users -"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.caddy.virtualHosts."jankremer.de".extraConfig = ''
|
services.caddy.virtualHosts."jankremer.de".extraConfig = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue