-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat. change desktop to use config file. (#4709)
* change desktop to use config file. * chore: fix logo svg config and related codes. * chore: fix logo svg config and related codes. * chore: bugs. * chore: update enable service to use global config. * chore: update build related files. * chore: update build related files. * chore: update sealos cloud cluster image to adapt desktop using yaml as config. Signed-off-by: yy <[email protected]> Signed-off-by: yy <[email protected]> * chore: update build related files. * merge(desktop):merge config (#33) chore(desktop):fix type error * chore: fix build error. --------- Signed-off-by: yy <[email protected]> Co-authored-by: xudaotutou <[email protected]>
- Loading branch information
1 parent
835e224
commit daff4ac
Showing
55 changed files
with
1,078 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ yarn-error.log* | |
|
||
# local env files | ||
.env*.local | ||
data/config.local.json | ||
data/*.local | ||
# vercel | ||
.vercel | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
cloud: | ||
domain: "127.0.0.1.nip.io" | ||
port: "" | ||
regionUID: "thisiaregionuid" | ||
certSecretName: "wildcard-cert" | ||
common: | ||
guideEnabled: "false" | ||
apiEnabled: "false" | ||
rechargeEnabled: "false" | ||
cfSiteKey: "" | ||
database: | ||
mongodbURI: "thisismongodburi" | ||
globalCockroachdbURI: "thisisglobalcockroachdburi" | ||
regionalCockroachdbURI: "thisisregionalcockroachdburi" | ||
desktop: | ||
layout: | ||
title: "Sealos Cloud" | ||
logo: "/logo.png" | ||
backgroundImage: "/images/bg-blue.svg" | ||
meta: | ||
title: "Sealos Cloud" | ||
description: "Sealos Cloud" | ||
keywords: "Sealos Cloud" | ||
scripts: [] | ||
common: | ||
githubStarEnabled: "false" | ||
auth: | ||
proxyAddress: "" | ||
callbackURL: "https://127.0.0.1.nip.io/callback" | ||
signUpEnabled: "true" | ||
baiduToken: "" | ||
invite: | ||
enabled: "false" | ||
jwt: | ||
internal: "thisisinternaljwt" | ||
regional: "thisisregionaljwt" | ||
global: "thisisglobaljwt" | ||
idp: | ||
password: | ||
enabled: "true" | ||
salt: "thisispasswordsalt" | ||
# github: | ||
# enabled: "{{ .githubEnabled }}" | ||
# clientId: "{{ .githubClientID }}" | ||
# clientSecret: "{{ .githubClientSecret }}" | ||
# wechat: | ||
# enabled: "{{ .wechatEnabled }}" | ||
# clientId: "{{ .wechatClientID }}" | ||
# clientSecret: "{{ .wechatClientSecret }}" | ||
# sms: | ||
# ali: | ||
# enabled: "{{ .smsEnabled }}" | ||
# endpoint: "{{ .aliSmsEndpoint }}" | ||
# signName: "{{ .aliSmsSignName }}" | ||
# accessKeyId: "{{ .aliAccessKeyID }}" | ||
# accessKeySecret: "{{ .aliAccessKeySecret }}" | ||
# oauth2: | ||
# enabled: "{{ .oauth2Enabled }}" | ||
# callbackURL: "https://{{ .cloudDomain }}{{ if .cloudPort }}:{{ .cloudPort }}{{ end }}/callback" | ||
# clientId: "{{ .oauth2ClientId }}" | ||
# clientSecret: "{{ .oauth2ClientSecret }}" | ||
# authURL: "{{ .oauth2AuthURL }}" | ||
# tokenURL: "{{ .oauth2TokenURL }}" | ||
# userInfoURL: "{{ .oauth2UserInfoURL }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: desktop-frontend-config | ||
namespace: sealos | ||
data: | ||
config.yaml : | | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: desktop-frontend-config | ||
namespace: sealos | ||
data: | ||
config.yaml : | | ||
cloud: | ||
domain: "{{ .cloudDomain }}" | ||
port: "{{ .cloudPort }}" | ||
regionUID: "<your-local-region-uid-base64>" | ||
certSecretName: "{{ .certSecretName }}" | ||
common: | ||
guideEnabled: "false" | ||
apiEnabled: "false" | ||
rechargeEnabled: "false" | ||
cfSiteKey: "" | ||
database: | ||
mongodbURI: "<your-mongodb-uri-base64>" | ||
globalCockroachdbURI: "<your-global-database-url-base64>" | ||
regionalCockroachdbURI: "<your-region-database-url-base64>" | ||
desktop: | ||
layout: | ||
title: "Sealos Cloud" | ||
logo: "/logo.png" | ||
backgroundImage: "/images/bg-blue.svg" | ||
meta: | ||
title: "Sealos Cloud" | ||
description: "Sealos Cloud" | ||
keywords: "Sealos Cloud" | ||
scripts: [] | ||
common: | ||
githubStarEnabled: "true" | ||
auth: | ||
proxyAddress: "" | ||
callbackURL: "https://{{ .cloudDomain }}{{ if .cloudPort }}:{{ .cloudPort }}{{ end }}/callback" | ||
signUpEnabled: "true" | ||
baiduToken: "" | ||
invite: | ||
enabled: "false" | ||
jwt: | ||
internal: "<your-jwt-secret-base64>" | ||
regional: "<your-jwt-secret-base64>" | ||
global: "<your-jwt-secret-base64>" | ||
idp: | ||
password: | ||
enabled: "true" | ||
salt: "<your-password-salt-base64>" |
Oops, something went wrong.