From 022955ceb9618853601c223540c18374ef05e6e6 Mon Sep 17 00:00:00 2001 From: Fernando Garioli Date: Mon, 27 Dec 2021 15:08:09 -0300 Subject: [NEW] Mercure one-click template (#592) * [NEW] Mercure one-click template * fixing file format check Co-authored-by: Fernando Garioli --- public/v4/apps/mercure.yml | 51 ++++++++++++++++++++++++++++++++++++++++++++ public/v4/logos/mercure.png | Bin 0 -> 19715 bytes 2 files changed, 51 insertions(+) create mode 100644 public/v4/apps/mercure.yml create mode 100644 public/v4/logos/mercure.png 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 Binary files /dev/null and b/public/v4/logos/mercure.png differ -- cgit v1.2.3