Skip to content

Commit 0969b52

Browse files
author
Tegridy Renovate Bot
committed
Update nextcloud
Signed-off-by: Tegridy Renovate Bot <bob@tegridy.io>
1 parent 9054e42 commit 0969b52

File tree

31 files changed

+353
-227
lines changed

31 files changed

+353
-227
lines changed

class/defaults.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ parameters:
3737
charts:
3838
nextcloud:
3939
source: https://nextcloud.github.io/helm
40-
version: 5.5.2
40+
version: 6.1.0
4141
postgresql:
4242
source: https://charts.bitnami.com/bitnami
43-
version: 15.5.20
43+
version: 16.0.1
4444
redis:
4545
source: https://charts.bitnami.com/bitnami
46-
version: 19.6.4
46+
version: 20.2.0
4747

4848
resources:
4949
nextcloud:

tests/golden/defaults/defaults/defaults/10_helmchart/nextcloud/templates/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,5 +263,5 @@ metadata:
263263
app.kubernetes.io/instance: nextcloud
264264
app.kubernetes.io/managed-by: Helm
265265
app.kubernetes.io/name: nextcloud
266-
helm.sh/chart: nextcloud-5.5.2
266+
helm.sh/chart: nextcloud-6.1.0
267267
name: nextcloud-config

tests/golden/defaults/defaults/defaults/10_helmchart/nextcloud/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/instance: nextcloud
77
app.kubernetes.io/managed-by: commodore
88
app.kubernetes.io/name: nextcloud
9-
helm.sh/chart: nextcloud-5.5.2
9+
helm.sh/chart: nextcloud-6.1.0
1010
name: nextcloud
1111
spec:
1212
replicas: 1
@@ -68,7 +68,7 @@ spec:
6868
secretKeyRef:
6969
key: redis-password
7070
name: nextcloud
71-
image: nextcloud:29.0.4-fpm-alpine
71+
image: nextcloud:30.0.0-fpm-alpine
7272
imagePullPolicy: IfNotPresent
7373
name: nextcloud
7474
resources:
@@ -241,7 +241,7 @@ spec:
241241
secretKeyRef:
242242
key: redis-password
243243
name: nextcloud
244-
image: nextcloud:29.0.4-fpm-alpine
244+
image: nextcloud:30.0.0-fpm-alpine
245245
imagePullPolicy: IfNotPresent
246246
name: nextcloud-cron
247247
resources:

tests/golden/defaults/defaults/defaults/10_helmchart/nextcloud/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/instance: nextcloud
77
app.kubernetes.io/managed-by: commodore
88
app.kubernetes.io/name: nextcloud
9-
helm.sh/chart: nextcloud-5.5.2
9+
helm.sh/chart: nextcloud-6.1.0
1010
name: nextcloud
1111
spec:
1212
rules:

tests/golden/defaults/defaults/defaults/10_helmchart/nextcloud/templates/nextcloud-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
app.kubernetes.io/instance: nextcloud
99
app.kubernetes.io/managed-by: Helm
1010
app.kubernetes.io/name: nextcloud
11-
helm.sh/chart: nextcloud-5.5.2
11+
helm.sh/chart: nextcloud-6.1.0
1212
name: nextcloud-nextcloud
1313
spec:
1414
accessModes:
Lines changed: 144 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,153 @@
11
apiVersion: v1
22
data:
3-
default.conf: "upstream php-handler {\n server 127.0.0.1:9000;\n}\n\nserver {\n\
4-
\ listen 80;\n\n # HSTS settings\n # WARNING: Only add the preload option\
5-
\ once you read about\n # the consequences in https://hstspreload.org/. This\
6-
\ option\n # will add the domain to a hardcoded list that is shipped\n #\
7-
\ in all major browsers and getting removed from this list\n # could take several\
8-
\ months.\n #add_header Strict-Transport-Security \"max-age=15768000; includeSubDomains;\
9-
\ preload;\" always;\n\n # set max upload size\n client_max_body_size 10G;\n\
10-
\ fastcgi_buffers 64 4K;\n\n # Enable gzip but do not remove ETag headers\n\
11-
\ gzip on;\n gzip_vary on;\n gzip_comp_level 4;\n gzip_min_length\
12-
\ 256;\n gzip_proxied expired no-cache no-store private no_last_modified no_etag\
13-
\ auth;\n gzip_types application/atom+xml application/javascript application/json\
14-
\ application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json\
15-
\ application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json\
16-
\ application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml\
17-
\ image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc\
18-
\ text/vtt text/x-component text/x-cross-domain-policy;\n\n # Pagespeed is\
19-
\ not supported by Nextcloud, so if your server is built\n # with the `ngx_pagespeed`\
20-
\ module, uncomment this line to disable it.\n #pagespeed off;\n\n # HTTP\
21-
\ response headers borrowed from Nextcloud `.htaccess`\n add_header Referrer-Policy\
22-
\ \"no-referrer\" always;\n add_header X-Content-Type-Options\
23-
\ \"nosniff\" always;\n add_header X-Download-Options\
24-
\ \"noopen\" always;\n add_header X-Frame-Options\
25-
\ \"SAMEORIGIN\" always;\n add_header X-Permitted-Cross-Domain-Policies\
26-
\ \"none\" always;\n add_header X-Robots-Tag \
27-
\ \"noindex, nofollow\" always;\n add_header X-XSS-Protection \
28-
\ \"1; mode=block\" always;\n\n # Remove X-Powered-By,\
29-
\ which is an information leak\n fastcgi_hide_header X-Powered-By;\n\n #\
30-
\ Add .mjs as a file extension for javascript\n # Either include it in the\
31-
\ default mime.types list\n # or include you can include that list explicitly\
32-
\ and add the file extension\n # only for Nextcloud like below:\n include\
33-
\ mime.types;\n types {\n text/javascript js mjs;\n } \n\n\
34-
\ # Path to the root of your installation\n root /var/www/html;\n\n #\
35-
\ Specify how to handle directories -- specifying `/index.php$request_uri`\n \
36-
\ # here as the fallback means that Nginx always exhibits the desired behaviour\n\
37-
\ # when a client requests a path that corresponds to a directory that exists\n\
38-
\ # on the server. In particular, if that directory contains an index.php file,\n\
39-
\ # that file is correctly served; if it doesn't, then the request is passed\
40-
\ to\n # the front-end controller. This consistent behaviour means that we\
41-
\ don't need\n # to specify custom rules for certain paths (e.g. images and\
42-
\ other assets,\n # `/updater`, `/ocm-provider`, `/ocs-provider`), and thus\n\
43-
\ # `try_files $uri $uri/ /index.php$request_uri`\n # always provides the\
44-
\ desired behaviour.\n index index.php index.html /index.php$request_uri;\n\
45-
\n # Rule borrowed from `.htaccess` to handle Microsoft DAV clients\n location\
46-
\ = / {\n if ( $http_user_agent ~ ^DavClnt ) {\n return 302\
47-
\ /remote.php/webdav/$is_args$args;\n }\n }\n\n location = /robots.txt\
48-
\ {\n allow all;\n log_not_found off;\n access_log off;\n\
49-
\ }\n\n # Make a regex exception for `/.well-known` so that clients can\
50-
\ still\n # access it despite the existence of the regex rule\n # `location\
51-
\ ~ /(\\.|autotest|...)` which would otherwise handle requests\n # for `/.well-known`.\n\
52-
\ location ^~ /.well-known {\n # The following 6 rules are borrowed\
53-
\ from `.htaccess`\n\n location = /.well-known/carddav { return 301\
54-
\ /remote.php/dav/; }\n location = /.well-known/caldav { return 301\
55-
\ /remote.php/dav/; }\n # Anything else is dynamically handled by Nextcloud\n\
56-
\ location ^~ /.well-known { return 301 /index.php$uri; }\n\n\
57-
\ try_files $uri $uri/ =404;\n }\n\n # Rules borrowed from `.htaccess`\
58-
\ to hide certain paths from clients\n location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/)\
59-
\ { return 404; }\n location ~ ^/(?:\\.|autotest|occ|issue|indie|db_|console)\
60-
\ { return 404; }\n\n # Ensure this block, which passes PHP files\
61-
\ to the PHP process, is above the blocks\n # which handle static assets (as\
62-
\ seen below). If this block is not declared first,\n # then Nginx will encounter\
63-
\ an infinite rewriting loop when it prepends `/index.php`\n # to the URI,\
64-
\ resulting in a HTTP 500 error response.\n location ~ \\.php(?:$|/) {\n \
65-
\ # Required for legacy support\n rewrite ^/(?!index|remote|public|cron|core\\\
66-
/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|oc[ms]-provider\\/.+|.+\\/richdocumentscode(_arm64)?\\\
67-
/proxy) /index.php$request_uri;\n\n fastcgi_split_path_info ^(.+?\\.php)(/.*)$;\n\
68-
\ set $path_info $fastcgi_path_info;\n\n try_files $fastcgi_script_name\
69-
\ =404;\n\n include fastcgi_params;\n fastcgi_param SCRIPT_FILENAME\
70-
\ $document_root$fastcgi_script_name;\n fastcgi_param PATH_INFO $path_info;\n\
71-
\ #fastcgi_param HTTPS on;\n\n fastcgi_param modHeadersAvailable\
72-
\ true; # Avoid sending the security headers twice\n fastcgi_param\
73-
\ front_controller_active true; # Enable pretty urls\n fastcgi_pass\
74-
\ php-handler;\n\n fastcgi_intercept_errors on;\n fastcgi_request_buffering\
75-
\ off;\n }\n\n location ~ \\.(?:css|js|svg|gif)$ {\n try_files $uri\
76-
\ /index.php$request_uri;\n expires 6M; # Cache-Control policy\
77-
\ borrowed from `.htaccess`\n access_log off; # Optional: Don't log\
78-
\ access to assets\n }\n\n location ~ \\.woff2?$ {\n try_files $uri\
79-
\ /index.php$request_uri;\n expires 7d; # Cache-Control policy\
80-
\ borrowed from `.htaccess`\n access_log off; # Optional: Don't log\
81-
\ access to assets\n }\n\n location / {\n try_files $uri $uri/ /index.php$request_uri;\n\
82-
\ }\n}"
3+
default.conf: |-
4+
upstream php-handler {
5+
server 127.0.0.1:9000;
6+
}
7+
8+
server {
9+
# Default, IPv4 only
10+
listen 80;
11+
12+
# HSTS settings
13+
# WARNING: Only add the preload option once you read about
14+
# the consequences in https://hstspreload.org/. This option
15+
# will add the domain to a hardcoded list that is shipped
16+
# in all major browsers and getting removed from this list
17+
# could take several months.
18+
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
19+
20+
# set max upload size
21+
client_max_body_size 10G;
22+
fastcgi_buffers 64 4K;
23+
24+
# Enable gzip but do not remove ETag headers
25+
gzip on;
26+
gzip_vary on;
27+
gzip_comp_level 4;
28+
gzip_min_length 256;
29+
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
30+
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
31+
32+
# Pagespeed is not supported by Nextcloud, so if your server is built
33+
# with the `ngx_pagespeed` module, uncomment this line to disable it.
34+
#pagespeed off;
35+
36+
# HTTP response headers borrowed from Nextcloud `.htaccess`
37+
add_header Referrer-Policy "no-referrer" always;
38+
add_header X-Content-Type-Options "nosniff" always;
39+
add_header X-Download-Options "noopen" always;
40+
add_header X-Frame-Options "SAMEORIGIN" always;
41+
add_header X-Permitted-Cross-Domain-Policies "none" always;
42+
add_header X-Robots-Tag "noindex, nofollow" always;
43+
add_header X-XSS-Protection "1; mode=block" always;
44+
45+
# Remove X-Powered-By, which is an information leak
46+
fastcgi_hide_header X-Powered-By;
47+
48+
# Add .mjs as a file extension for javascript
49+
# Either include it in the default mime.types list
50+
# or include you can include that list explicitly and add the file extension
51+
# only for Nextcloud like below:
52+
include mime.types;
53+
types {
54+
text/javascript js mjs;
55+
}
56+
57+
# Path to the root of your installation
58+
root /var/www/html;
59+
60+
# Specify how to handle directories -- specifying `/index.php$request_uri`
61+
# here as the fallback means that Nginx always exhibits the desired behaviour
62+
# when a client requests a path that corresponds to a directory that exists
63+
# on the server. In particular, if that directory contains an index.php file,
64+
# that file is correctly served; if it doesn't, then the request is passed to
65+
# the front-end controller. This consistent behaviour means that we don't need
66+
# to specify custom rules for certain paths (e.g. images and other assets,
67+
# `/updater`, `/ocm-provider`, `/ocs-provider`), and thus
68+
# `try_files $uri $uri/ /index.php$request_uri`
69+
# always provides the desired behaviour.
70+
index index.php index.html /index.php$request_uri;
71+
72+
# Rule borrowed from `.htaccess` to handle Microsoft DAV clients
73+
location = / {
74+
if ( $http_user_agent ~ ^DavClnt ) {
75+
return 302 /remote.php/webdav/$is_args$args;
76+
}
77+
}
78+
79+
location = /robots.txt {
80+
allow all;
81+
log_not_found off;
82+
access_log off;
83+
}
84+
85+
# Make a regex exception for `/.well-known` so that clients can still
86+
# access it despite the existence of the regex rule
87+
# `location ~ /(\.|autotest|...)` which would otherwise handle requests
88+
# for `/.well-known`.
89+
location ^~ /.well-known {
90+
# The following 6 rules are borrowed from `.htaccess`
91+
92+
location = /.well-known/carddav { return 301 /remote.php/dav/; }
93+
location = /.well-known/caldav { return 301 /remote.php/dav/; }
94+
# Anything else is dynamically handled by Nextcloud
95+
location ^~ /.well-known { return 301 /index.php$uri; }
96+
97+
try_files $uri $uri/ =404;
98+
}
99+
100+
# Rules borrowed from `.htaccess` to hide certain paths from clients
101+
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)(?:$|/) { return 404; }
102+
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) { return 404; }
103+
104+
# Ensure this block, which passes PHP files to the PHP process, is above the blocks
105+
# which handle static assets (as seen below). If this block is not declared first,
106+
# then Nginx will encounter an infinite rewriting loop when it prepends `/index.php`
107+
# to the URI, resulting in a HTTP 500 error response.
108+
location ~ \.php(?:$|/) {
109+
# Required for legacy support
110+
rewrite ^/(?!index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode(_arm64)?\/proxy) /index.php$request_uri;
111+
112+
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
113+
set $path_info $fastcgi_path_info;
114+
115+
try_files $fastcgi_script_name =404;
116+
117+
include fastcgi_params;
118+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
119+
fastcgi_param PATH_INFO $path_info;
120+
#fastcgi_param HTTPS on;
121+
122+
fastcgi_param modHeadersAvailable true; # Avoid sending the security headers twice
123+
fastcgi_param front_controller_active true; # Enable pretty urls
124+
fastcgi_pass php-handler;
125+
126+
fastcgi_intercept_errors on;
127+
fastcgi_request_buffering off;
128+
}
129+
130+
location ~ \.(?:css|js|svg|gif)$ {
131+
try_files $uri /index.php$request_uri;
132+
expires 6M; # Cache-Control policy borrowed from `.htaccess`
133+
access_log off; # Optional: Don't log access to assets
134+
}
135+
136+
location ~ \.woff2?$ {
137+
try_files $uri /index.php$request_uri;
138+
expires 7d; # Cache-Control policy borrowed from `.htaccess`
139+
access_log off; # Optional: Don't log access to assets
140+
}
141+
142+
location / {
143+
try_files $uri $uri/ /index.php$request_uri;
144+
}
145+
}
83146
kind: ConfigMap
84147
metadata:
85148
labels:
86149
app.kubernetes.io/instance: nextcloud
87150
app.kubernetes.io/managed-by: Helm
88151
app.kubernetes.io/name: nextcloud
89-
helm.sh/chart: nextcloud-5.5.2
152+
helm.sh/chart: nextcloud-6.1.0
90153
name: nextcloud-nginxconfig

tests/golden/defaults/defaults/defaults/10_helmchart/nextcloud/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
app.kubernetes.io/instance: nextcloud
77
app.kubernetes.io/managed-by: Helm
88
app.kubernetes.io/name: nextcloud
9-
helm.sh/chart: nextcloud-5.5.2
9+
helm.sh/chart: nextcloud-6.1.0
1010
name: nextcloud
1111
spec:
1212
ports:

tests/golden/defaults/defaults/defaults/10_helmchart/postgresql/templates/primary/statefulset.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
app.kubernetes.io/instance: postgresql
77
app.kubernetes.io/managed-by: commodore
88
app.kubernetes.io/name: postgresql
9-
app.kubernetes.io/version: 16.3.0
10-
helm.sh/chart: postgresql-15.5.20
9+
app.kubernetes.io/version: 17.0.0
10+
helm.sh/chart: postgresql-16.0.1
1111
name: postgresql
1212
namespace: app-defaults
1313
spec:
@@ -29,8 +29,8 @@ spec:
2929
app.kubernetes.io/instance: postgresql
3030
app.kubernetes.io/managed-by: commodore
3131
app.kubernetes.io/name: postgresql
32-
app.kubernetes.io/version: 16.3.0
33-
helm.sh/chart: postgresql-15.5.20
32+
app.kubernetes.io/version: 17.0.0
33+
helm.sh/chart: postgresql-16.0.1
3434
name: postgresql
3535
spec:
3636
affinity:
@@ -82,7 +82,7 @@ spec:
8282
value: error
8383
- name: POSTGRESQL_SHARED_PRELOAD_LIBRARIES
8484
value: pgaudit
85-
image: docker.io/bitnami/postgresql:16.3.0-debian-12-r23
85+
image: docker.io/bitnami/postgresql:17.0.0-debian-12-r1
8686
imagePullPolicy: IfNotPresent
8787
livenessProbe:
8888
exec:

tests/golden/defaults/defaults/defaults/10_helmchart/postgresql/templates/primary/svc-headless.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ metadata:
77
app.kubernetes.io/instance: postgresql
88
app.kubernetes.io/managed-by: commodore
99
app.kubernetes.io/name: postgresql
10-
app.kubernetes.io/version: 16.3.0
11-
helm.sh/chart: postgresql-15.5.20
10+
app.kubernetes.io/version: 17.0.0
11+
helm.sh/chart: postgresql-16.0.1
1212
name: postgresql-hl
1313
namespace: app-defaults
1414
spec:

tests/golden/defaults/defaults/defaults/10_helmchart/postgresql/templates/primary/svc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ metadata:
66
app.kubernetes.io/instance: postgresql
77
app.kubernetes.io/managed-by: commodore
88
app.kubernetes.io/name: postgresql
9-
app.kubernetes.io/version: 16.3.0
10-
helm.sh/chart: postgresql-15.5.20
9+
app.kubernetes.io/version: 17.0.0
10+
helm.sh/chart: postgresql-16.0.1
1111
name: postgresql
1212
namespace: app-defaults
1313
spec:

0 commit comments

Comments
 (0)