Skip to content

Commit

Permalink
Merge pull request #19 from oliviermgx/main
Browse files Browse the repository at this point in the history
yml file for caprover one-click-app configuration
  • Loading branch information
lexoyo authored Nov 20, 2024
2 parents f94a061 + 93785ff commit f7ba666
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ You can set the following environment variables to customize the instance:
| `BREVO_API_URL` | The API URL for the Brevo service (onboarding, optional) | string | - |
| `BREVO_LIST_ID` | The list ID for the Brevo service (onboarding, optional) | string | - |


## For Your Gitlab App
- see https://docs.gitlab.com/ee/integration/oauth_provider.html#create-a-user-owned-application
- Your redirect url should be : `https://[yourdomain]/api/connector/login/callback`


## Support

[Please use the main Silex repository](https://github.com/silexlabs/Silex/) for docs and issues
69 changes: 69 additions & 0 deletions silex-platform.yml
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit f7ba666

Please sign in to comment.