summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancisco GarcĂ­a <[email protected]>2020-04-17 22:28:59 -0400
committerGitHub <[email protected]>2020-04-17 22:28:59 -0400
commit83c9464a89d4be5b9529a7b0aca81f79b91ae532 (patch)
treeb253cf30f100d89140e9d8f7c856b998f6cb0078
parent14ee1aaa64bcd65807e0507f00ffacbbc6266918 (diff)
downloadcaprover-one-click-apps-83c9464a89d4be5b9529a7b0aca81f79b91ae532.tar.gz
caprover-one-click-apps-83c9464a89d4be5b9529a7b0aca81f79b91ae532.zip
updated phpmyadmin + file upload limit (#152)
-rw-r--r--public/v2/apps/phpmyadmin.json31
1 files changed, 20 insertions, 11 deletions
diff --git a/public/v2/apps/phpmyadmin.json b/public/v2/apps/phpmyadmin.json
index 6e0645f..90fa19a 100644
--- a/public/v2/apps/phpmyadmin.json
+++ b/public/v2/apps/phpmyadmin.json
@@ -10,21 +10,30 @@
"image": "phpmyadmin/phpmyadmin:$$cap_pma_version",
"restart": "always",
"environment": {
- "PMA_ARBITRARY": "1"
+ "PMA_ARBITRARY": "1",
+ "UPLOAD_LIMIT": "$$cap_upload_limit"
}
}
}
},
"instructions": {
"start": "PhpMyAdmin is the most popular web interface for MySQL & MariaDB. Simply install PhpMyAdmin and then select what database you want to connect to.\n\n Enter your PhpMyAdmin Configuration parameters and click on next. It will take about a minute for the process to finish.",
- "end": "PhpMyAdmin is deployed and available as $$cap_appname"
+ "end": "PhpMyAdmin is deployed and available as $$cap_appname. \n\nNote: Once deployed you can easily change the upload limit file size by modifying the value in the variable in the menu: App Configs>UPLOAD_LIMIT.\n\nIf you need to upload files bigger than 500M you will also need to modify the option: 'client_max_body_size 500m' by clicking in the menu: HTTP Settings>Edit Default Nginx Configurations."
},
- "variables": [{
- "id": "$$cap_pma_version",
- "label": "PHP My Admin Version Tag",
- "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/phpmyadmin/phpmyadmin/tags/",
- "defaultValue": "4.8",
- "validRegex": "/^([^\\s^\\/])+$/"
- }]
-
-} \ No newline at end of file
+ "variables": [
+ {
+ "id": "$$cap_upload_limit",
+ "label": "File size upload limit",
+ "description": "It will override the default value for apache and php-fpm inside the container. Default size is 2M",
+ "defaultValue": "2M",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_pma_version",
+ "label": "PHP My Admin Version Tag",
+ "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/phpmyadmin/phpmyadmin/tags/",
+ "defaultValue": "5.0.2",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ }
+ ]
+}