mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
update apphub:AppStore add initial apps
This commit is contained in:
parent
c38e177a4c
commit
d4094da3a5
3 changed files with 21 additions and 8 deletions
|
@ -1,19 +1,19 @@
|
|||
[nginx_proxy_manager]
|
||||
base_url = http://websoft9-proxy:81/api
|
||||
user_name = admin@mydomain.com
|
||||
user_pwd = gtBi82ljgJLOBdIv
|
||||
user_name = help@websoft9.com
|
||||
user_pwd = JB21x6AkBshLRK5Y
|
||||
nike_name = admin
|
||||
|
||||
[gitea]
|
||||
base_url = http://websoft9-git:3000/api/v1
|
||||
user_name = websoft9
|
||||
user_email = admin@mydomain.com
|
||||
user_pwd = lDaCDO8gASjB
|
||||
user_pwd = HZ4RYXr9ce6R
|
||||
|
||||
[portainer]
|
||||
base_url = http://websoft9-deployment:9000/api
|
||||
user_name = admin
|
||||
user_pwd = p$(kww3otq8aTMnN
|
||||
user_pwd = BDMnVb)gqRKISzfH
|
||||
|
||||
[api_key]
|
||||
key = 8b13560946c48e6f545a9adcf33c3441f798c59a81b3f241bdfeb179cfbc0ff8
|
||||
|
@ -24,3 +24,6 @@ wildcard_domain =
|
|||
[cockpit]
|
||||
port = 9000
|
||||
|
||||
[initial_apps]
|
||||
keys = gitlab
|
||||
|
||||
|
|
|
@ -3,3 +3,6 @@ path = /websoft9/library/apps
|
|||
|
||||
[app_media]
|
||||
path = /websoft9/media/json/
|
||||
|
||||
[apps_default]
|
||||
keys = wordpress
|
|
@ -76,7 +76,14 @@ class AppManger:
|
|||
item["settings"] = settings
|
||||
item["is_web_app"] = "W9_URL" in env_data
|
||||
|
||||
# Get the initial_apps from config.ini
|
||||
initial_apps = ConfigManager("config.ini").get_value("initial_apps", "keys")
|
||||
if not initial_apps:
|
||||
return data
|
||||
else:
|
||||
app_keys = initial_apps.split(",")
|
||||
return [item for item in data if item.get("key") in app_keys]
|
||||
|
||||
except (CustomException,Exception) as e:
|
||||
logger.error(f"Get available apps error:{e}")
|
||||
raise CustomException()
|
||||
|
|
Loading…
Reference in a new issue