mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
yunohost app skipped_uri
This commit is contained in:
parent
e743cb8c89
commit
0399f99537
1 changed files with 12 additions and 1 deletions
|
@ -686,6 +686,17 @@ def app_ssowatconf():
|
||||||
for user in user_list()['Users']:
|
for user in user_list()['Users']:
|
||||||
users[user['Username']] = app_map(user=user['Username'])
|
users[user['Username']] = app_map(user=user['Username'])
|
||||||
|
|
||||||
|
skipped_uri=[]
|
||||||
|
apps={}
|
||||||
|
for app in app_list()['Apps']:
|
||||||
|
with open(apps_setting_path + app['ID'] +'/settings.yml') as f:
|
||||||
|
app_settings = yaml.load(f)
|
||||||
|
if 'skipped_uris' in app_settings:
|
||||||
|
skipped_uri=[app_settings['domain'] + app_settings['path'][:-1] + item for item in app_settings['skipped_uris'].split(',')]
|
||||||
|
|
||||||
|
for domain in domains:
|
||||||
|
skipped_uri.extend([domain +'/ynhadmin', domain +'/ynhapi'])
|
||||||
|
|
||||||
conf_dict = {
|
conf_dict = {
|
||||||
'portal_domain': main_domain,
|
'portal_domain': main_domain,
|
||||||
'portal_path': '/ynhsso/',
|
'portal_path': '/ynhsso/',
|
||||||
|
@ -698,7 +709,7 @@ def app_ssowatconf():
|
||||||
'Email': 'mail'
|
'Email': 'mail'
|
||||||
},
|
},
|
||||||
'domains': domains,
|
'domains': domains,
|
||||||
'skipped_urls': [main_domain +'/ynhadmin', main_domain +'/ynhapi'],
|
'skipped_urls': skipped_uri,
|
||||||
'unprotected_urls': [],
|
'unprotected_urls': [],
|
||||||
'users': users
|
'users': users
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue