Compare commits
2
Commits
13.2.2+2026.8.5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e067b373d4 | ||
|
|
9a6f73d682
|
@@ -230,21 +230,24 @@ import os
|
||||
if os.environ['APPLICATIONS'] == '':
|
||||
exit()
|
||||
applications = json.loads(os.environ['APPLICATIONS'])
|
||||
for name, details in applications.items():
|
||||
for app_name, details in applications.items():
|
||||
slug = app_name.replace(' ', '-')
|
||||
url = details['url']
|
||||
app = Application.objects.filter(name=name).first()
|
||||
app = Application.objects.filter(slug=slug).first()
|
||||
if not app:
|
||||
app = Application()
|
||||
app.name = name
|
||||
app.slug = name.replace(' ', '-')
|
||||
if name := details.get('name'):
|
||||
app.name = name
|
||||
else:
|
||||
app.name = app_name
|
||||
app.slug = slug
|
||||
app.meta_launch_url = url
|
||||
group = details['group']
|
||||
if group:
|
||||
if group := details.get('group'):
|
||||
app.group = group
|
||||
print(f'Add {name}: {url} in group: {group}')
|
||||
print(f'Add {app_name}: {url} in group: {group}')
|
||||
else:
|
||||
app.group = ''
|
||||
print(f'Add {name}: {url}')
|
||||
print(f'Add {app_name}: {url}')
|
||||
app.open_in_new_tab = True
|
||||
app.save()
|
||||
""" 2>&1 | quieten
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect,${STACK_NAME}-frameOptions,${STACK_NAME}-redirect"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.customFrameOptionsValue=SAMEORIGIN"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-frameOptions.headers.contentSecurityPolicy=frame-ancestors ${X_FRAME_OPTIONS_ALLOW_FROM}"
|
||||
- "coop-cloud.${STACK_NAME}.version=13.2.2+2026.8.5"
|
||||
- "coop-cloud.${STACK_NAME}.version=13.2.3+2026.8.5"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectregex.regex=^https://(${REDIRECTS})/(.*)"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectregex.replacement=https://${DOMAIN}/$${2}"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectregex.permanent=true"
|
||||
|
||||
Reference in New Issue
Block a user