You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'd like to propose an enhancement to Nextcloud's One Click App template, to add the ability to set folder path to use for nextcloud installation.
I tried to make this enhancement myself by adding the $$cap_appname-data variable at install time. But for some reason, the path is not taken into account and caprover uses the default path as in this image.
However, I did add this to the template:
- id: $$cap_appname-datalabel: Path to store datadefaultValue: /mnt/myFolder/description: Path where the data will be stored on the host machine. (e.g. /mnt/data, /home/user/data)validRegex: '/.{1,}/'
There must be a syntax error, if someone experienced in One Click App templates would like to give me some advice, that would be nice.
I asked the question on caprover's Slack but didn't get an answer and saw in the documentation that it was possible to open an issue here. I hope this is allowed and that I'm in the right place.
Best regards
Here is the complete template:
captainVersion: 4services:
$$cap_appname-db:
documentation: Taken from https://hub.docker.com/_/mariadbimage: mariadb:$$cap_mariadb_versionvolumes:
- $$cap_appname-db-data:/var/lib/mysqlrestart: alwaysenvironment:
MYSQL_ROOT_PASSWORD: $$cap_db_passMYSQL_DATABASE: nextcloudMYSQL_USER: $$cap_db_userMYSQL_PASSWORD: $$cap_db_passcaproverExtra:
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.ymlimage: redis:$$cap_redis_versionrestart: alwaysvolumes:
- $$cap_appname-redis-data:/datacaproverExtra:
notExposeAsWebApp: 'true'$$cap_appname:
depends_on:
- $$cap_appname-db
- $$cap_appname-redisdocumentation: Taken from https://hub.docker.com/_/nextcloudimage: nextcloud:$$cap_nextcloud_versionvolumes:
- $$cap_appname-data:/var/www/htmlrestart: alwaysenvironment:
OVERWRITEPROTOCOL: $$cap_http_https_corsMYSQL_DATABASE: nextcloudMYSQL_USER: $$cap_db_userMYSQL_PASSWORD: $$cap_db_passMYSQL_HOST: srv-captain--$$cap_appname-dbREDIS_HOST: srv-captain--$$cap_appname-redisNEXTCLOUD_ADMIN_USER: $$cap_admin_userNEXTCLOUD_ADMIN_PASSWORD: $$cap_admin_passNEXTCLOUD_TRUSTED_DOMAINS: $$cap_appname.$$cap_root_domain $$cap_hostnames$$cap_appname-cron:
depends_on:
- $$cap_appname-db
- $$cap_appname-redis
- $$cap_appnamedocumentation: https://github.com/nextcloud/docker/blob/master/.examples/docker-compose/with-nginx-proxy/mariadb-cron-redis/apache/docker-compose.ymlrestart: alwaysvolumes:
- $$cap_appname-data:/var/www/htmlcaproverExtra:
dockerfileLines:
- FROM nextcloud:$$cap_nextcloud_version
- 'ENTRYPOINT [ "/cron.sh" ] 'notExposeAsWebApp: 'true'caproverOneClickApp:
variables:
- id: $$cap_nextcloud_versionlabel: NextCloud VersiondefaultValue: 28.0.5description: >- Check out their Docker page for the valid tags https://hub.docker.com/_/nextcloud?tab=tags Do not use fpm versions.validRegex: /^((?!fpm)\S)+$/
- id: $$cap_appname-datalabel: Path to store datadefaultValue: /mnt/myFolder/description: Path where the data will be stored on the host machine. (e.g. /mnt/data, /home/user/data)validRegex: '/.{1,}/'
- id: $$cap_redis_versionlabel: Redis VersiondefaultValue: 7.2.4description: Check out their Docker page for the valid tags https://hub.docker.com/_/redis?tab=tagsvalidRegex: /^([^\s^\/])+$/
- id: $$cap_mariadb_versionlabel: MariaDB (database) versiondefaultValue: 11.2.3description: Check out their Docker page for the valid tags https://hub.docker.com/_/mariadb?tab=tagsvalidRegex: /^([^\s^\/])+$/
- id: $$cap_db_userlabel: database userdefaultValue: nextclouddescription: Username for the database using mysql.validRegex: /^([a-zA-Z0-9])+$/
- id: $$cap_db_passlabel: database passworddefaultValue: $$cap_gen_random_hex(32)description: Password for the database user and root using mysql.validRegex: /.{1,}/
- id: $$cap_admin_userlabel: admin namedefaultValue: admindescription: Name of the Nextcloud admin user.validRegex: /^([a-zA-Z0-9\@\.])+$/
- id: $$cap_admin_passlabel: admin passworddefaultValue: $$cap_gen_random_hex(10)description: Password for the Nextcloud admin user.validRegex: /.{8,}/
- id: $$cap_http_https_corslabel: Protocol of proxydefaultValue: httpsdescription: Choose either http or https. cors configuration to login are set by the docker image, if you do not set this same as your proxy configuration, login will failvalidRegex: /^http[s]?$/
- id: $$cap_hostnameslabel: hostnamesdescription: Add all your additional hostnames where nextcloud will be exposed separated by space char. After first run, this variables are not reloaded by nextcloud and you will have to change the configuration according to the nextcloud's documentation.instructions:
start: A safe home for all your data. Access & share your files, calendars, contacts, mail & more from any device, on your terms. http://Nextcloud.comend: >- NextCloud is deployed and will be available on few minutes as $$cap_appname. 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, 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. For DAV add after `/.well-known/captain-identifier` section `location /.well-known/carddav {return 301 $scheme://$host/remote.php/dav;}` `location /.well-known/caldav {return 301 $scheme://$host/remote.php/dav;}` You can see HSTS parts of the nextcloud security documentation [https://docs.nextcloud.com/server/21/admin_manual/installation/harden_server.html](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/](https://scan.nextcloud.com/)displayName: NextcloudisOfficial: truedescription: Nextcloud is a suite of client-server software for creating and using file hosting servicesdocumentation: Taken from https://hub.docker.com/_/nextcloud
The text was updated successfully, but these errors were encountered:
@githubsaturn Thanks for the tips indeed, that was indeed the problem for the volume :) 👍
Yes, as you say, there are other issues to be resolved for this to work. After renaming the variable to $$cap_data_volume, the Nextcloud application fails to start up correctly.
I'm currently experimenting with a customized volume. I'll keep you informed of progress here.
Hello, I'd like to propose an enhancement to Nextcloud's One Click App template, to add the ability to set folder path to use for nextcloud installation.
I tried to make this enhancement myself by adding the
$$cap_appname-data
variable at install time. But for some reason, the path is not taken into account and caprover uses the default path as in this image.However, I did add this to the template:
There must be a syntax error, if someone experienced in One Click App templates would like to give me some advice, that would be nice.
I asked the question on caprover's Slack but didn't get an answer and saw in the documentation that it was possible to open an issue here. I hope this is allowed and that I'm in the right place.
Best regards
Here is the complete template:
The text was updated successfully, but these errors were encountered: