-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmanifest.jps
63 lines (56 loc) · 2.54 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
type: install
id: owncloud
version: 1.7
name: ownCloud
baseUrl: https://raw.githubusercontent.com/jelastic-jps/owncloud/master/
categories:
- apps/file-management
- apps/popular
- apps/file-manager
mixins:
- configs/vers.yaml
globals:
PASSWD: ${fn.password}
homepage: https://owncloud.com/
logo: images/ownCloud.png
description: ownCloud represents an open-source file cloud storage. It can be used for simple document storing, as well as implement data sharing and synchronization.
nodes:
- cloudlets: 8
nodeType: apache2
engine: php7.4
- cloudlets: 8
nodeType: mysql8
onInstall:
- deploy:
archive: https://download.owncloud.com/server/stable/owncloud-${globals.version_owncloud}.zip
name: owncloud-${globals.version_owncloud}.zip
context: ROOT
- cmd[sqldb]: |-
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "CREATE DATABASE owncloud;"
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "CREATE USER 'owncloud'@'%' IDENTIFIED BY '${globals.PASSWD}';"
MYSQL_PWD=${nodes.mysql8.password} mysql -uroot -e "GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud'@'%' WITH GRANT OPTION;"
- cmd [cp]: printf '<?php\n $AUTOCONFIG = array(\n "dbtype" => "mysql",\n "dbname" => "owncloud",\n "dbuser" => "owncloud",\n "dbpass" => "${globals.PASSWD}",\n "dbhost" => "${nodes.mysql8.address}",\n "dbtableprefix" => "oc_",\n "adminlogin" => "admin",\n "adminpass" => "${user.appPassword}",\n "directory" => "/var/www/webroot/ROOT/data",\n);' > /var/www/webroot/ROOT/config/autoconfig.php
- replaceInFile:
- path: /etc/php.ini
nodeType: apache2
replacements:
- replacement: post_max_size = 256M
pattern: post_max_size = 8M
- replacement: upload_max_filesize = 256M
pattern: upload_max_filesize = 2M
- replacement: max_execution_time = 300
pattern: max_execution_time = 30
- pattern: ";extension=gd.so"
replacement: extension=gd.so
- pattern: ";extension=intl.so"
replacement: extension=intl.so
- pattern: cgi.fix_pathinfo=0
replacement: cgi.fix_pathinfo=1
- restartNode:
nodeType: apache2
success: |
Use the following credentials to access the ownCloud admin panel:
**Admin panel URL:** [${env.protocol}://${env.domain}/](${env.protocol}://${env.domain}/)
**Admin name:** admin
**Admin password:** ${user.appPassword}
To add a custom domain name for your ownCloud installation, follow the steps described in our [documentation](https://www.virtuozzo.com/application-platform-docs/custom-domains/).