summaryrefslogtreecommitdiffhomepage
path: root/public/v4
diff options
context:
space:
mode:
authorFernando Garioli <[email protected]>2021-12-27 15:08:09 -0300
committerGitHub <[email protected]>2021-12-27 10:08:09 -0800
commit022955ceb9618853601c223540c18374ef05e6e6 (patch)
tree9ebe58c009ca1ebb47bd7ec1384286de61817a6f /public/v4
parentd815e0a4985d4c0d4531b4b202a32a9401a2fe7c (diff)
downloadcaprover-one-click-apps-022955ceb9618853601c223540c18374ef05e6e6.tar.gz
caprover-one-click-apps-022955ceb9618853601c223540c18374ef05e6e6.zip
[NEW] Mercure one-click template (#592)
* [NEW] Mercure one-click template * fixing file format check Co-authored-by: Fernando Garioli <[email protected]>
Diffstat (limited to 'public/v4')
-rw-r--r--public/v4/apps/mercure.yml51
-rw-r--r--public/v4/logos/mercure.pngbin0 -> 19715 bytes
2 files changed, 51 insertions, 0 deletions
diff --git a/public/v4/apps/mercure.yml b/public/v4/apps/mercure.yml
new file mode 100644
index 0000000..cdb2e44
--- /dev/null
+++ b/public/v4/apps/mercure.yml
@@ -0,0 +1,51 @@
+captainVersion: 4
+services:
+ # Mercure
+ $$cap_appname:
+ image: dunglas/mercure:$$cap_mercure_version
+ restart: unless-stopped
+ environment:
+ # Uncomment the following line to disable HTTPS
+ SERVER_NAME: ':80'
+ MERCURE_PUBLISHER_JWT_KEY: $$cap_mercure_publisher_jwt_key
+ MERCURE_SUBSCRIBER_JWT_KEY: $$cap_mercure_subscriber_jwt_key
+ MERCURE_EXTRA_DIRECTIVES: $$cap_mercure_extra_directives
+ volumes:
+ - $$cap_appname-mercure-data:/data
+ - $$cap_appname-mercure-config:/config
+ # Uncomment the following line to enable the development mode
+ caproverExtra:
+ containerHttpPort: '80'
+caproverOneClickApp:
+ variables:
+ - id: $$cap_mercure_version
+ label: Mercure Version
+ defaultValue: 'v0.13'
+ description: Check out their Docker page for the valid tags https://hub.docker.com/r/dunglas/mercure/tags
+ validRegex: /^([^\s^\/])+$/
+ - id: $$cap_mercure_publisher_jwt_key
+ label: Mercure Publisher JWT Key
+ defaultValue: '!ChangeMe!'
+ description: 'The JWT key to use for publishers'
+ - id: $$cap_mercure_subscriber_jwt_key
+ label: Mercure Subscriber JWT Key
+ defaultValue: '!ChangeMe!'
+ description: 'The JWT key to use for subscribers'
+ - id: $$cap_mercure_extra_directives
+ label: Extra Directives
+ defaultValue: 'subscriptions demo anonymous cors_origins * publish_origins *'
+ description: 'A list of extra Mercure directives inject in the Caddy file, one per line'
+ instructions:
+ start: >-
+ Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way. It is especially useful to publish real-time updates of resources served through web APIs, to reactive web and mobile apps.
+
+ For documentation, see: https://mercure.rocks/docs
+
+ Enter your Mercure Configuration parameters and click on next. It will take about a minute for the process to finish.
+ end: >-
+ Aaaand you're done! 😄
+ Your service is available at http://$$cap_appname.$$cap_root_domain
+ displayName: 'Mercure'
+ isOfficial: true
+ description: Mercure is a protocol allowing to push data updates to web browsers and other HTTP clients.
+ documentation: Taken from https://mercure.rocks/docs/hub/install
diff --git a/public/v4/logos/mercure.png b/public/v4/logos/mercure.png
new file mode 100644
index 0000000..abe76de
--- /dev/null
+++ b/public/v4/logos/mercure.png
Binary files differ