mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-21 21:45:36 +00:00
- Added HTTP readiness check for Desktop application to ensure all logos can be downloaded during initialization - Introduced 'http_port' variable for better readability - Simplified role execution structure by moving run_once inclusion into core task file - Adjusted docker compose handler flushing behavior - Applied consistent structure to Discourse role See: https://chatgpt.com/share/68ed02aa-b44c-800f-a125-de8600b102d4
45 lines
2.1 KiB
YAML
45 lines
2.1 KiB
YAML
# General
|
|
application_id: "web-app-desktop"
|
|
http_port: "{{ ports.localhost.http[application_id] }}"
|
|
|
|
## Webserver
|
|
proxy_extra_configuration: "{{ lookup('template', 'nginx/sso.html.conf.j2') }}"
|
|
|
|
## Docker
|
|
docker_repository_address: "https://github.com/kevinveenbirkenbach/port-ui"
|
|
docker_pull_git_repository: true
|
|
|
|
# Desktop
|
|
|
|
## Simpleicons
|
|
DESKTOP_SIMPLEICONS_ENABLED: "{{ applications | get_app_conf(application_id, 'features.simpleicons') }}"
|
|
|
|
## Javascript
|
|
DESKTOP_JS_CDN_URL: "{{ domains | get_url('web-svc-cdn', WEB_PROTOCOL) }}"
|
|
DESKTOP_JS_FILES: ['iframe.js','oidc.js']
|
|
DESKTOP_JS_BASE_PATH: "{{ application_id | get_entity_name }}/js"
|
|
DESKTOP_JS_SERVER_DIR: "{{ [ NGINX.DIRECTORIES.DATA.CDN, DESKTOP_JS_BASE_PATH ] | path_join }}"
|
|
DESKTOP_JS_BASE_URL: "{{ (DESKTOP_JS_CDN_URL | trim('/')) ~ '/' ~ (DESKTOP_JS_BASE_PATH | trim('/')) }}"
|
|
|
|
## Webserver
|
|
DESKTOP_LOCATION_SILENT_CHECK: "/silent-check-sso.html"
|
|
|
|
|
|
## Configuration
|
|
DESKTOP_CONFIG_YML_SRC_FILE: "config.yaml.j2"
|
|
DESKTOP_CONFIG_INV_PATH: "{{ [ inventory_dir, 'files', inventory_hostname ,'docker',application_id,DESKTOP_CONFIG_YML_SRC_FILE] | path_join }}"
|
|
DESKTOP_CONFIG_YML_DEST: "{{ [ docker_repository_path, 'app/config.yaml'] | path_join }}"
|
|
|
|
## OIDC
|
|
DESKTOP_KEYCLOAK_LOGIN_URL: >-
|
|
{{ OIDC.CLIENT.AUTHORIZE_URL
|
|
~ '?client_id=' ~ OIDC.CLIENT.ID
|
|
~ '&response_type=code'
|
|
~ '&scope=openid%20profile%20email'
|
|
~ '&redirect_uri=' ~ (domains | get_url(application_id, WEB_PROTOCOL)) | urlencode }}
|
|
DESKTOP_KEYCLOAK_IFRAME_ENABLED: "{{ applications | get_app_conf( 'web-app-keycloak', 'features.desktop') }}"
|
|
DESKTOP_OIDC_ENABLED: "{{ applications | get_app_conf( application_id, 'features.oidc') }}"
|
|
|
|
## Docker
|
|
DESKTOP_CONTAINER: "{{ applications | get_app_conf( application_id, 'docker.services.desktop.name') }}"
|
|
DESKTOP_IMAGE: "{{ applications | get_app_conf( application_id, 'docker.services.desktop.image') }}" |