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;
|
||||
'';
|
||||
};
|
||||
"~ ^/calendars/[^/]+\.ics$" = {
|
||||
root = "/srv/http/ics";
|
||||
tryFiles = "$uri $uri/ $uri.ics =404";
|
||||
"~ ^/calendar/([^/]+\.ics)$" = {
|
||||
alias = "/srv/http/calendars/$1";
|
||||
extraConfig = ''
|
||||
add_header Cache-Control "no-cache";
|
||||
types {
|
||||
text/calendar ics;
|
||||
}
|
||||
default_type text/calendar;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue