user: kael staff
worker_connections: 256
body_size: 10m

upstreams:
  api:
    server:
      # There is only one server on dev
      - 127.0.0.1:8080

  static:
    server:
      - 127.0.0.1:8081

servers:
  -
    # Only listen to 80
    # If no port defined,
    # it will listen 80 and 443 simultaneously.
    port: 80
    server_name: apis.domain.com

    include: route/domain.com.conf
    data:
      upstream: api

  -
    port: 80
    server_name: static.domain.com
    include: route/domain.com.conf
    data:
      upstream: static
