fix
This commit is contained in:
parent
ea32378a2e
commit
0b18d44f19
1 changed files with 9 additions and 3 deletions
|
|
@ -84,9 +84,15 @@ in
|
||||||
autoindex on;
|
autoindex on;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"~ ^/calendars/[^/]+\.ics$" = {
|
"~ ^/calendar/([^/]+\.ics)$" = {
|
||||||
root = "/srv/http/ics";
|
alias = "/srv/http/calendars/$1";
|
||||||
tryFiles = "$uri $uri/ $uri.ics =404";
|
extraConfig = ''
|
||||||
|
add_header Cache-Control "no-cache";
|
||||||
|
types {
|
||||||
|
text/calendar ics;
|
||||||
|
}
|
||||||
|
default_type text/calendar;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue