Skip to content

Commit

Permalink
nextcloud: Update for Nextcloud 27 / Nextcloud Hub 5
Browse files Browse the repository at this point in the history
  • Loading branch information
JGoutin committed Sep 13, 2023
1 parent 0a6225e commit ca6ce71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion roles/nextcloud/files/nginx-site-nextcloud.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
# Path to the root of your installation
root /var/www/nextcloud;

# Add .mjs as a file extension for javascript
# Either include it in the default mime.types list
# or include you can include that list explicitly and add the file extension
# only for Nextcloud like below:
include mime.types;
types {
text/javascript js mjs;
}

# Specify how to handle directories -- specifying `/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour
# when a client requests a path that corresponds to a directory that exists
Expand Down Expand Up @@ -92,7 +101,8 @@
fastcgi_max_temp_file_size 0;
}

location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
# Serve static files
location ~ \.(?:css|js|mjs|svg|gif|png|jpg|ico|wasm|tflite|map)$ {
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463, immutable";
access_log off; # Optional: Don't log access to assets
Expand Down
1 change: 1 addition & 0 deletions roles/nextcloud/tasks/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
ansible.builtin.include_role:
name: jgoutin.home.php_fpm
vars:
php_version: "8.2"
php_fpm_user: nextcloud
php_fpm_site: nextcloud
php_fpm_domain: "{{ nextcloud_domain }}"
Expand Down

0 comments on commit ca6ce71

Please sign in to comment.