Upgrade nextcloud from 19.0.0 to 21.0.1 (#405)
* add intelliJ idea's project configuration to gitignore * upgrade mariadb from 10.5.3 to 10.5.9 for nextcloud * add redis to nextcloud and upgrade from 19.0.0 to 21.0.1 * remove bad http port for nextcloud * improve nextcloud end instructions Co-authored-by: Simon Belbeoch <simon.belbeoch@octo.com>
This commit is contained in:
parent
f70b3a6307
commit
849d981d5b
|
|
@ -2,3 +2,4 @@
|
||||||
dist/*
|
dist/*
|
||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.idea/
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,16 @@ services:
|
||||||
MYSQL_PASSWORD: $$cap_db_pass
|
MYSQL_PASSWORD: $$cap_db_pass
|
||||||
caproverExtra:
|
caproverExtra:
|
||||||
notExposeAsWebApp: 'true'
|
notExposeAsWebApp: 'true'
|
||||||
|
$$cap_appname-redis:
|
||||||
|
documentation: Taken from https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml
|
||||||
|
image: redis:$$cap_redis_version
|
||||||
|
restart: always
|
||||||
|
caproverExtra:
|
||||||
|
notExposeAsWebApp: 'true'
|
||||||
$$cap_appname:
|
$$cap_appname:
|
||||||
depends_on:
|
depends_on:
|
||||||
- $$cap_appname-db
|
- $$cap_appname-db
|
||||||
|
- $$cap_appname-redis
|
||||||
documentation: Taken from https://hub.docker.com/_/nextcloud
|
documentation: Taken from https://hub.docker.com/_/nextcloud
|
||||||
image: nextcloud:$$cap_nextcloud_version
|
image: nextcloud:$$cap_nextcloud_version
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -27,14 +34,16 @@ services:
|
||||||
MYSQL_USER: $$cap_db_user
|
MYSQL_USER: $$cap_db_user
|
||||||
MYSQL_PASSWORD: $$cap_db_pass
|
MYSQL_PASSWORD: $$cap_db_pass
|
||||||
MYSQL_HOST: srv-captain--$$cap_appname-db
|
MYSQL_HOST: srv-captain--$$cap_appname-db
|
||||||
|
REDIS_HOST: srv-captain--$$cap_appname-redis
|
||||||
NEXTCLOUD_ADMIN_USER: $$cap_admin_user
|
NEXTCLOUD_ADMIN_USER: $$cap_admin_user
|
||||||
NEXTCLOUD_ADMIN_PASSWORD: $$cap_admin_pass
|
NEXTCLOUD_ADMIN_PASSWORD: $$cap_admin_pass
|
||||||
NEXTCLOUD_TRUSTED_DOMAINS: $$cap_appname.$$cap_root_domain
|
NEXTCLOUD_TRUSTED_DOMAINS: $$cap_appname.$$cap_root_domain
|
||||||
$$cap_appname-cron:
|
$$cap_appname-cron:
|
||||||
depends_on:
|
depends_on:
|
||||||
- $$cap_appname-db
|
- $$cap_appname-db
|
||||||
|
- $$cap_appname-redis
|
||||||
- $$cap_appname
|
- $$cap_appname
|
||||||
documentation: https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml
|
documentation: https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.yml
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- $$cap_appname-data:/var/www/html
|
- $$cap_appname-data:/var/www/html
|
||||||
|
|
@ -47,27 +56,33 @@ caproverOneClickApp:
|
||||||
variables:
|
variables:
|
||||||
- id: $$cap_nextcloud_version
|
- id: $$cap_nextcloud_version
|
||||||
label: NextCloud Version
|
label: NextCloud Version
|
||||||
defaultValue: 19.0.0
|
defaultValue: 21.0.1
|
||||||
description: >-
|
description: >-
|
||||||
Check out their Docker page for the valid tags https://hub.docker.com/r/library/nextcloud/tags/
|
Check out their Docker page for the valid tags https://hub.docker.com/_/nextcloud?tab=tags
|
||||||
|
|
||||||
|
|
||||||
Do not use fpm versions.
|
Do not use fpm versions.
|
||||||
|
validRegex: /^((?!fpm)\S)+$/
|
||||||
|
- id: $$cap_redis_version
|
||||||
|
label: Redis Version
|
||||||
|
defaultValue: 6.2.2
|
||||||
|
description: Check out their Docker page for the valid tags https://hub.docker.com/_/redis?tab=tags
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_mariadb_version
|
- id: $$cap_mariadb_version
|
||||||
label: MariaDB (database) version
|
label: MariaDB (database) version
|
||||||
defaultValue: 10.5.3
|
defaultValue: 10.5.9
|
||||||
description: Check out their Docker page for the valid tags https://hub.docker.com/_/mariadb?tab=tags
|
description: Check out their Docker page for the valid tags https://hub.docker.com/_/mariadb?tab=tags
|
||||||
validRegex: /^([^\s^\/])+$/
|
validRegex: /^([^\s^\/])+$/
|
||||||
- id: $$cap_db_pass
|
|
||||||
label: database password
|
|
||||||
description: Password for the database user and root using mysql.
|
|
||||||
validRegex: /.{1,}/
|
|
||||||
- id: $$cap_db_user
|
- id: $$cap_db_user
|
||||||
label: database user
|
label: database user
|
||||||
defaultValue: nextcloud
|
defaultValue: nextcloud
|
||||||
description: Username for the database using mysql.
|
description: Username for the database using mysql.
|
||||||
validRegex: /^([a-zA-Z0-9])+$/
|
validRegex: /^([a-zA-Z0-9])+$/
|
||||||
|
- id: $$cap_db_pass
|
||||||
|
label: database password
|
||||||
|
defaultValue: $$cap_gen_random_hex(32)
|
||||||
|
description: Password for the database user and root using mysql.
|
||||||
|
validRegex: /.{1,}/
|
||||||
- id: $$cap_admin_user
|
- id: $$cap_admin_user
|
||||||
label: admin name
|
label: admin name
|
||||||
defaultValue: admin
|
defaultValue: admin
|
||||||
|
|
@ -76,7 +91,7 @@ caproverOneClickApp:
|
||||||
- id: $$cap_admin_pass
|
- id: $$cap_admin_pass
|
||||||
label: admin password
|
label: admin password
|
||||||
description: Password for the Nextcloud admin user.
|
description: Password for the Nextcloud admin user.
|
||||||
validRegex: /.{1,}/
|
validRegex: /.{8,}/
|
||||||
- id: $$cap_http_https_cors
|
- id: $$cap_http_https_cors
|
||||||
label: Protocol of proxy
|
label: Protocol of proxy
|
||||||
defaultValue: https
|
defaultValue: https
|
||||||
|
|
@ -90,7 +105,14 @@ caproverOneClickApp:
|
||||||
If you set the cors sections to https, please enable https on your app. If you do not activate it you will have an error.
|
If you set the cors sections to https, please enable https on your app. If you do not activate it you will have an error.
|
||||||
|
|
||||||
|
|
||||||
For better performances and compliance, you can add "add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;" below "proxy_set_header X-Forwarded-Proto $scheme;" into the nginx configuration.
|
For better performances and compliance, click on "edit default nginx configuration" button then
|
||||||
|
below "proxy_set_header X-Forwarded-Proto $scheme;"
|
||||||
|
add "add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;" into the nginx configuration.
|
||||||
|
|
||||||
|
You can see HSTS parts of the nextcloud security documentation https://docs.nextcloud.com/server/21/admin_manual/installation/harden_server.html for further informations
|
||||||
|
|
||||||
|
|
||||||
|
You can also scan your nextcloud instance on https://scan.nextcloud.com/
|
||||||
displayName: nextcloud
|
displayName: nextcloud
|
||||||
isOfficial: true
|
isOfficial: true
|
||||||
description: Nextcloud is a suite of client-server software for creating and using file hosting services
|
description: Nextcloud is a suite of client-server software for creating and using file hosting services
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue