# Domains

## Service Domains
defaults_domains:
  akaunting:               "accounting.{{primary_domain}}"
  attendize:               "tickets.{{primary_domain}}"
  baserow:                 "baserow.{{primary_domain}}"
  bigbluebutton:           "meet.{{primary_domain}}"
  bluesky_api:             "bluesky.{{primary_domain}}"
  bluesky_web:             "bskyweb.{{primary_domain}}"
  discourse:               "forum.{{primary_domain}}"
  elk:                     "elk.{{primary_domain}}"
  espocrm:                 "espocrm.{{primary_domain}}"
  file_server:             "files.{{primary_domain}}"
  friendica:               "friendica.{{primary_domain}}"
  funkwhale:               "music.{{primary_domain}}"
  gitea:                   "git.{{primary_domain}}"
  gitlab:                  "gitlab.{{primary_domain}}"
  html_server:             "html.{{primary_domain}}"
  keycloak:                "auth.{{primary_domain}}"
  lam:                     "lam.{{primary_domain}}"
  ldap:                    "ldap.{{primary_domain}}"
  listmonk:                "newsletter.{{primary_domain}}"
  mailu:                   "mail.{{primary_domain}}"
  mastodon:                "microblog.{{primary_domain}}"
  # ATTENTION: Will be owerwritten by the values in domains. Not merged.
  mastodon_alternates:     
    - "mastodon.{{primary_domain}}"
  matomo:                  "matomo.{{primary_domain}}"
  matrix_synapse:          "matrix.{{primary_domain}}"
  matrix_element:          "element.{{primary_domain}}"
  moodle:                  "academy.{{primary_domain}}"
  mediawiki:               "wiki.{{primary_domain}}"
  nextcloud:               "cloud.{{primary_domain}}"
  openproject:             "project.{{primary_domain}}"
  peertube:                "video.{{primary_domain}}"
  # ATTENTION: Will be owerwritten by the values in domains. Not merged.
  peertube_alternates:     []
  pgadmin:                 "pgadmin.{{primary_domain}}"
  phpmyadmin:              "phpmyadmin.{{primary_domain}}"
  phpmyldap:               "phpmyldap.{{primary_domain}}"
  pixelfed:                "picture.{{primary_domain}}"
  portfolio:               "{{primary_domain}}"
  presentation:            "slides.{{primary_domain}}"
  roulette-wheel:          "roulette.{{primary_domain}}"
  snipe_it:                "inventory.{{primary_domain}}"
  sphinx:                  "docs.{{primary_domain}}"
  taiga:                   "kanban.{{primary_domain}}"
  yourls:                  "s.{{primary_domain}}"
  # ATTENTION: Will be owerwritten by the values in domains. Not merged.
  wordpress:              
    - "blog.{{primary_domain}}"

## Domain Redirects
defaults_redirect_domain_mappings:
- { source: "akaunting.{{primary_domain}}",   target: "{{domains.akaunting}}" }
- { source: "bbb.{{primary_domain}}",         target: "{{domains.bigbluebutton}}" }
- { source: "discourse.{{primary_domain}}",   target: "{{domains.discourse}}" }
- { source: "crm.{{primary_domain}}",         target: "{{domains.espocrm}}" }
- { source: "funkwhale.{{primary_domain}}",   target: "{{domains.funkwhale}}" }
- { source: "gitea.{{primary_domain}}",       target: "{{domains.gitea}}" }
- { source: "keycloak.{{primary_domain}}",    target: "{{domains.keycloak}}" }
- { 
    source: "{{ domains.ldap }}", 
    target: "{% if 'lam' in group_names %}{{ domains.lam }}{% elif 'phpmyldapadmin' in group_names %}{{ domains.phpmyldap }}{% else %}{{ primary_domain }}{% endif %}"
  }
- { source: "listmonk.{{primary_domain}}",    target: "{{domains.listmonk}}" }
- { source: "mailu.{{primary_domain}}",       target: "{{domains.mailu}}" }
- { source: "moodle.{{primary_domain}}",      target: "{{domains.moodle}}" }
- { source: "nextcloud.{{primary_domain}}",   target: "{{domains.nextcloud}}" }
- { source: "openproject.{{primary_domain}}", target: "{{domains.openproject}}" }
- { source: "peertube.{{primary_domain}}",    target: "{{domains.peertube}}" }
- { source: "pictures.{{primary_domain}}",    target: "{{domains.pixelfed}}" }
- { source: "pixelfed.{{primary_domain}}",    target: "{{domains.pixelfed}}" }
- { source: "short.{{primary_domain}}",       target: "{{domains.yourls}}" }
- { source: "snipe-it.{{primary_domain}}",    target: "{{domains.snipe_it}}" }
- { source: "taiga.{{primary_domain}}",       target: "{{domains.taiga}}" }
- { source: "videos.{{primary_domain}}",      target: "{{domains.peertube}}" }
- { source: "wordpress.{{primary_domain}}",   target: "{{domains.wordpress[0]}}" }
