From 564eec6c82396a531e96f820efbbf39765921815 Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 14 Nov 2024 19:17:21 +0100 Subject: [PATCH 1/2] silex-platform for caprover --- public/v4/apps/silex-platform.yml | 69 +++++++++++++++++++++++++++++ public/v4/logos/silex-platform.png | Bin 0 -> 6921 bytes 2 files changed, 69 insertions(+) create mode 100644 public/v4/apps/silex-platform.yml create mode 100644 public/v4/logos/silex-platform.png diff --git a/public/v4/apps/silex-platform.yml b/public/v4/apps/silex-platform.yml new file mode 100644 index 000000000..79620fc52 --- /dev/null +++ b/public/v4/apps/silex-platform.yml @@ -0,0 +1,69 @@ +captainVersion: 4 +services: + '$$cap_appname': + image: silexlabs/silex-platform:$$cap_version + environment: + SILEX_URL: https://$$cap_appname.$$cap_root_domain + STORAGE_CONNECTORS: $$cap_storage_connector + HOSTING_CONNECTORS: $$cap_hosting_connector + GITLAB_DOMAIN: https://gitlab.com + GITLAB_CLIENT_ID: $$cap_gitlab_client_id + GITLAB_CLIENT_SECRET: $$cap_gitlab_client_secret + GITLAB2_DOMAIN: $$cap_gitlab2_domain + GITLAB2_CLIENT_ID: $$cap_gitlab2_client_id + GITLAB2_CLIENT_SECRET: $$cap_gitlab2_client_secret + GITLAB_SCOPE: 'api read_user' + GITLAB_TIMEOUT: 5000 + volumes: + # - '$$cap_appname-data:/srv/data' + # - '$$cap_appname-cfg:/srv/cfg' + caproverExtra: + containerHttpPort: '6805' +caproverOneClickApp: + variables: + - id: '$$cap_version' + label: silex-platform Version + defaultValue: 'v1.0.162' + description: Check out their Docker page for the valid tags https://hub.docker.com/r/silexlabs/silex-platform/tags + validRegex: "/^([^\\s^\\/])+$/" + - id: '$$cap_tz' + label: Time Zone + defaultValue: Europe/Paris + description: Get yours from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones + validRegex: '/.{1,}/' + - id: '$$cap_storage_connector' + label: STORAGE_CONNECTOR + defaultValue: 'gitlab' + description: Storage connector you want to use should be one or more of following gitlab,ftp,gitlab2 (separated with comma but no space) + validRegex: '/^((gitlab|ftp|gitlab2)\,?)*$/' + - id: '$$cap_hosting_connector' + label: HOSTING_CONNECTOR + defaultValue: 'gitlab,download' + description: Hosting connector you want to use should be one or more of following gitlab,ftp,gitlab2,download (separated with comma but no space) + validRegex: '/^((gitlab|ftp|gitlab2|download)\,?)*$/' + - id: '$$cap_gitlab_client_id' + label: GITLAB_CLIENT_ID + description: Your client-id for your gitlab app + - id: '$$cap_gitlab_client_secret' + label: GITLAB_CLIENT_SECRET + description: Your client-secret for your gitlab app + - id: '$$cap_gitlab2_domain' + label: GITLAB2_DOMAIN + description: Domain for your other gitlab instance (e.g. https://framagit.org) + - id: '$$cap_gitlab2_client_id' + label: GITLAB2_CLIENT_ID + description: Your client-id for your other gitlab instance app + - id: '$$cap_gitlab2_client_secret' + label: GITLAB2_CLIENT_SECRET + description: Your client-secret for your other gitlab instance app + instructions: + start: |- + Silex, is a free and open source website builder in the cloud. Create websites directly in the browser without writing code. And it is suitable for professional designers to produce great websites without constraints. Silex is also known as the HTML5 editor. + More details: https://silex.me/ + end: |- + silex-platform has been successfully deployed! + Your service is available at http://$$cap_appname.$$cap_root_domain + displayName: silex-platform + isOfficial: true + description: Silex is an online tool for visually creating static sites with dynamic data. With the free/libre spirit of internet, together. + documentation: See https://silex.me/resources/ diff --git a/public/v4/logos/silex-platform.png b/public/v4/logos/silex-platform.png new file mode 100644 index 0000000000000000000000000000000000000000..308dfa1fd7515e5bceb807c56c249e099b1e9356 GIT binary patch literal 6921 zcmeHKc{r5o`yWHug-}_?#3^c+88c&MtTC2}L6(rhY?ur)%wX(mmKKz#=!nXal9H^6 zPGn6{gOHrGQK{9fvGI@j-eUBByG*YEpZGuOM_&*%O;_x-u==egcD&B4w}QcO_{ z1OiDCtqG36l?EKXB5Q&3eCW$hz@;t1*^TQ+4ui0RSw0LV9l{M~(;;*o!v_T74Fx!O zNC~Qod|r?gO z8DvE*L|J+71aZH#pJrv==SLc!GVoDCpWozUXE`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XdNxjrhdleTJO97Y7!b@p2Ao>H=G{G Date: Fri, 15 Nov 2024 09:24:52 +0100 Subject: [PATCH 2/2] minor adaptations --- public/v4/apps/silex-platform.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/public/v4/apps/silex-platform.yml b/public/v4/apps/silex-platform.yml index 79620fc52..e23cf17b4 100644 --- a/public/v4/apps/silex-platform.yml +++ b/public/v4/apps/silex-platform.yml @@ -14,9 +14,6 @@ services: GITLAB2_CLIENT_SECRET: $$cap_gitlab2_client_secret GITLAB_SCOPE: 'api read_user' GITLAB_TIMEOUT: 5000 - volumes: - # - '$$cap_appname-data:/srv/data' - # - '$$cap_appname-cfg:/srv/cfg' caproverExtra: containerHttpPort: '6805' caproverOneClickApp: @@ -26,11 +23,6 @@ caproverOneClickApp: defaultValue: 'v1.0.162' description: Check out their Docker page for the valid tags https://hub.docker.com/r/silexlabs/silex-platform/tags validRegex: "/^([^\\s^\\/])+$/" - - id: '$$cap_tz' - label: Time Zone - defaultValue: Europe/Paris - description: Get yours from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - validRegex: '/.{1,}/' - id: '$$cap_storage_connector' label: STORAGE_CONNECTOR defaultValue: 'gitlab' @@ -43,10 +35,10 @@ caproverOneClickApp: validRegex: '/^((gitlab|ftp|gitlab2|download)\,?)*$/' - id: '$$cap_gitlab_client_id' label: GITLAB_CLIENT_ID - description: Your client-id for your gitlab app + description: Your client-id for your gitlab app (see https://docs.gitlab.com/ee/integration/oauth_provider.html#create-a-user-owned-application) - id: '$$cap_gitlab_client_secret' label: GITLAB_CLIENT_SECRET - description: Your client-secret for your gitlab app + description: Your client-secret for your gitlab app (see https://docs.gitlab.com/ee/integration/oauth_provider.html#create-a-user-owned-application) - id: '$$cap_gitlab2_domain' label: GITLAB2_DOMAIN description: Domain for your other gitlab instance (e.g. https://framagit.org) @@ -58,8 +50,19 @@ caproverOneClickApp: description: Your client-secret for your other gitlab instance app instructions: start: |- - Silex, is a free and open source website builder in the cloud. Create websites directly in the browser without writing code. And it is suitable for professional designers to produce great websites without constraints. Silex is also known as the HTML5 editor. + Silex, is a free and open source website builder in the cloud. + Create websites directly in the browser without writing code. + And it is suitable for professional designers to produce great websites without constraints. + Silex is also known as the HTML5 editor. + More details: https://silex.me/ + For environment variables definition, see https://docs.silex.me/en/dev/options + + NB: + You can selfhost your gitlab instance too so that you will have a full selfhosted web builder. + You probably want to use a CMS like Wordpress or others, you can also selfhost it. + See https://docs.silex.me/en/user/cms + end: |- silex-platform has been successfully deployed! Your service is available at http://$$cap_appname.$$cap_root_domain