---
# General
application_id: "web-app-yourls"
entity_name: "{{ application_id | entity_name }}"
YOURLS_USER: "{{ lookup('users', 'platform_administrator').username }}"
YOURLS_PASSWORD: "{{ lookup('users', 'platform_administrator').password }}"
YOURLS_COOKIE_KEY: "{{ lookup('config', application_id, 'secrets.credentials.cookie_key') }}"
YOURLS_VERSION: "{{ lookup('config', application_id, 'services.yourls.version') }}"
YOURLS_IMAGE: "{{ lookup('config', application_id, 'services.yourls.image') }}"
YOURLS_CONTAINER: "{{ lookup('config', application_id, 'services.yourls.name') }}"
YOURLS_CONTAINER_ADDRESS: "{{ lookup('container_address', application_id, entity_name) }}"
YOURLS_URL: "{{ lookup('tls', application_id, 'url.origin') }}"
YOURLS_ADMIN_LOCATION: "{{ lookup('config', application_id, 'server.locations.admin') }}"
YOURLS_LANDINGPAGE_STATUS_CODE: "{{ lookup('config', application_id, 'server.status_codes.default') }}"
YOURLS_DOCROOT: "/var/www/html"
YOURLS_WEB_USER: "www-data"
YOURLS_UPGRADE_PROBE_KEYWORD: "infinito-upgrade-probe"
YOURLS_SSO_PROXY_GATED: "{{ lookup('sso', application_id, 'is_proxy_gated') }}"
YOURLS_SSO_ADMIN_GROUP: "/{{ lookup('rbac_group_path', application_id=application_id, role='administrator') }}"
container_port: "{{ lookup('config', application_id, 'services.' ~ entity_name ~ '.ports.internal.http') }}"
design_css_urls:
share: "{{ YOURLS_URL }}/images/share.svg"
pencil: "{{ YOURLS_URL }}/images/pencil.svg"
delete: "{{ YOURLS_URL }}/images/delete.svg"
chart-bar: "{{ YOURLS_URL }}/images/chart_bar.svg"
twitter: "{{ YOURLS_URL }}/images/twitter.svg"
facebook: "{{ YOURLS_URL }}/images/facebook.svg"
copy: "{{ YOURLS_URL }}/images/copy.svg"