Skip to content

Commit

Permalink
Dynamically create site-config via @comet/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarnutsch committed Oct 3, 2024
1 parent 04d11a7 commit 4ae799b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
24 changes: 3 additions & 21 deletions .digitalocean/comet-starter-cms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,23 +125,7 @@ services:
-----END CERTIFICATE-----
- key: PRIVATE_SITE_CONFIGS
scope: RUN_AND_BUILD_TIME
value: |-
[
{
"scope": { "domain": "main", "languages": ["en", "de"] },
"name": "Starter Main",
"domains": { "main": "comet-starter-site-tyqqf.ondigitalocean.app" },
"preloginEnabled": true,
"url": "https://comet-starter-site-tyqqf.ondigitalocean.app"
},
{
"scope": { "domain": "secondary", "languages": ["en", "de"] },
"name": "Starter Secondary",
"domains": { "main": "secondary.localhost:3000" },
"preloginEnabled": true,
"url": "http://secondary.localhost:3000"
}
]
value: "{{ site://configs/private/$APP_ENV }}"
- key: POSTGRESQL_USE_SSL
scope: RUN_AND_BUILD_TIME
value: "true"
Expand Down Expand Up @@ -276,12 +260,10 @@ services:
value: https://comet-starter-cms-64wfr.ondigitalocean.app/
- key: PUBLIC_SITE_CONFIGS
scope: RUN_AND_BUILD_TIME
value:
'[{"scope":{"domain":"main","languages":["en","de"]},"name":"Starter Main","domains":{"main":"comet-starter-site-tyqqf.ondigitalocean.app"},"preloginEnabled":true,"urls":"https://comet-starter-site-tyqqf.ondigitalocean.app"},{"scope":{"domain":"secondary","languages":["en","de"]},"name":"Starter
Secondary","domains":{"main":"secondary.localhost:3000"},"preloginEnabled":true,"url":"http://secondary.localhost:3000"}]'
value: "{{ site://configs/public/$APP_ENV }}"
- key: PREVIEW_URL
scope: RUN_AND_BUILD_TIME
value: https://comet-starter-site-preview-jespg.ondigitalocean.app
value: https://comet-starter-site-preview-jespg.ondigitalocean.app # TODO
github:
branch: main
deploy_on_push: false
Expand Down
18 changes: 1 addition & 17 deletions .digitalocean/comet-starter-site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,7 @@ services:
value: EV[1:/Nf0VXO5XP5SJY9Y/JAFyZttB4Z1B6po:xL4pWQaF02cU4y1QCahqXdvD94A+QOJxXVVGDea4TYFVPQ==]
- key: PUBLIC_SITE_CONFIGS
scope: RUN_AND_BUILD_TIME
value: |-
[
{
"scope": { "domain": "main", "languages": ["en", "de"] },
"name": "Starter Main",
"domains": { "main": "comet-starter-site-tyqqf.ondigitalocean.app" },
"preloginEnabled": true,
"url": "https://comet-starter-site-tyqqf.ondigitalocean.app"
},
{
"scope": { "domain": "secondary", "languages": ["en", "de"] },
"name": "Starter Secondary",
"domains": { "main": "secondary.localhost:3000" },
"preloginEnabled": true,
"url": "http://secondary.localhost:3000"
}
]
value: "{{ site://configs/public/$APP_ENV }}"
- key: API_BASIC_AUTH_SYSTEM_USER_PASSWORD
scope: RUN_AND_BUILD_TIME
type: SECRET
Expand Down

0 comments on commit 4ae799b

Please sign in to comment.