# Pangolin Resources — Instance: {{name}}
# All resources route through nginx for consistent subdomain handling

resources:
  # ─── Always-On Resources ──────────────────────────────────

  - name: app
    subdomain: app
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: api
    subdomain: api
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: root
    subdomain: ""
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: true

  - name: docs
    subdomain: docs
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: db
    subdomain: db
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: mail
    subdomain: mail
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: qr
    subdomain: qr
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  # ─── Conditional Resources ────────────────────────────────

{{#if enableMedia}}
  - name: media
    subdomain: media
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableListmonk}}
  - name: listmonk
    subdomain: listmonk
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableGancio}}
  - name: events
    subdomain: events
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableChat}}
  - name: chat
    subdomain: chat
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableMeet}}
  - name: meet
    subdomain: meet
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableMonitoring}}
  - name: grafana
    subdomain: grafana
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}

{{#if enableDevTools}}
  - name: code
    subdomain: code
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: git
    subdomain: git
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: n8n
    subdomain: n8n
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: home
    subdomain: home
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: vault
    subdomain: vault
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false

  - name: draw
    subdomain: draw
    target: http://{{containerPrefix}}-nginx:80
    isBaseDomain: false
{{/if}}
