From 88141ea3e86c056686b870aff1304f33592eedd0 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 19 Jan 2023 15:58:04 +0100 Subject: [PATCH] new: [solid] add charm --- solid/hooks/web_proxy-relation-joined | 14 +++++++++++ solid/metadata.yml | 34 +++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100755 solid/hooks/web_proxy-relation-joined create mode 100644 solid/metadata.yml diff --git a/solid/hooks/web_proxy-relation-joined b/solid/hooks/web_proxy-relation-joined new file mode 100755 index 0000000..00651f9 --- /dev/null +++ b/solid/hooks/web_proxy-relation-joined @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +url=$(relation-get url) || exit 1 + +config-add "\ +services: + $MASTER_BASE_SERVICE_NAME: + command: + - \"--baseUrl\" + - $url +" + diff --git a/solid/metadata.yml b/solid/metadata.yml new file mode 100644 index 0000000..16bcc5c --- /dev/null +++ b/solid/metadata.yml @@ -0,0 +1,34 @@ +name: solid +summary: "Community Solid Server" +maintainer: "Valentin Lab " +## from: solidproject/community-server:5.1.2 +docker-image: docker.0k.io/solid:5.1.2 + +data-resources: + - /data + +uses: + web-proxy: + #constraint: required | recommended | optional + #auto: pair | summon | none ## default: pair + constraint: recommended + auto: pair + solves: + proxy: "Public access" + default-options: + target: !var-expand ${MASTER_BASE_SERVICE_NAME}:3000 + + # backup: + # constraint: recommended + # auto: pair + # solves: + # backup: "Automatic regular backup" + # default-options: + # ## First pattern matching wins, no pattern matching includes. + # ## include-patterns are checked first, then exclude-patterns + # ## Patterns rules: + # ## - ending / for directory + # ## - '*' authorized + # ## - must start with a '/', will start from $SERVICE_DATASTORE + # #exclude-patterns: + # # - "/var/lib/odoo/sessions/"