mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update nginx.conf
This commit is contained in:
parent
eb3f36b551
commit
25c0a84347
1 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
# Expires mappings
|
||||||
|
map $sent_http_content_type $expires {
|
||||||
|
default off;
|
||||||
|
text/html epoch;
|
||||||
|
text/css max;
|
||||||
|
application/javascript max;
|
||||||
|
~image/ max;
|
||||||
|
}
|
||||||
|
|
||||||
location ^~ /.well-known {
|
location ^~ /.well-known {
|
||||||
# The following 6 rules are borrowed from `.htaccess`
|
# The following 6 rules are borrowed from `.htaccess`
|
||||||
|
|
||||||
|
@ -63,7 +72,7 @@ location ^~ __PATH__/ {
|
||||||
index index.php index.html __PATH__/index.php$request_uri;
|
index index.php index.html __PATH__/index.php$request_uri;
|
||||||
|
|
||||||
# Default Cache-Control policy
|
# Default Cache-Control policy
|
||||||
expires 1m;
|
expires $expires;
|
||||||
|
|
||||||
# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
|
# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
|
||||||
location = __PATH__/ {
|
location = __PATH__/ {
|
||||||
|
|
Loading…
Add table
Reference in a new issue