diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:24:09 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2020-05-17 20:34:42 +0200 |
commit | 3c7c834a37802e5ca5d93a4b4a91dde3264d9f5d (patch) | |
tree | 07abe3c01bb29505ceab94b7bdb587c1d3bd09ba /roles/nextcloud | |
parent | a16b003a9bf101234ca988b6e43466a3d6b99bc7 (diff) |
nginx: Add Expires: HTTP headers.
Diffstat (limited to 'roles/nextcloud')
-rw-r--r-- | roles/nextcloud/files/etc/nginx/sites-available/nextcloud | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud index e971f99..52f24e0 100644 --- a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud +++ b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud @@ -64,42 +64,42 @@ server { location / { rewrite ^ /index.php$uri last; } location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ { internal; } location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { internal; } location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+|core/templates/40[34])\.php(?:$|/) { include snippets/fastcgi-php.conf; fastcgi_param modHeadersAvailable true; fastcgi_param front_controller_active true; fastcgi_intercept_errors on; fastcgi_request_buffering off; fastcgi_pass unix:/run/php/php7.3-fpm@nextcloud.sock; } location ~ ^/(?:updater|oc[ms]-provider)(?:$|/) { try_files $uri/ =404; index index.php; } location ~ \.(?:css|js|woff2?|svg|gif|map)$ { - try_files $uri /index.php$uri$is_args$args; expires 30d; + try_files $uri /index.php$uri$is_args$args; } location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ { try_files $uri /index.php$uri$is_args$args; } location = /core/img/favicon.ico { alias /var/www/nextcloud/fripost.ico; } } server { listen 80; listen [::]:80; listen 443 ssl http2; listen [::]:443 ssl http2; server_name www.cloud.fripost.org; include /etc/lacme/nginx.conf; |