{
  "listeners": {
    "*:8000": {
      "pass": "routes"
    }
  },
  "routes": [
    {
      "match": {
        "uri": "~^.+\\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map)$"
      },
      "action": {
        "share": "/var/www/castopod/public$uri",
        "response_headers": {
          "X-Content-Type-Options": "nosniff",
          "Access-Control-Allow-Origin": "*",
          "Cache-Control": "max-age=604800"
        },
        "fallback": {
          "pass": "applications/castopod"
        }
      }
    },
    {
      "action": {
        "share": "/var/www/castopod/public$uri",
        "response_headers": {
          "X-Frame-Options": "sameorigin",
          "X-Content-Type-Options": "nosniff",
          "Access-Control-Allow-Origin": "*"
        },
        "fallback": {
          "pass": "applications/castopod"
        }
      }
    }
  ],
  "applications": {
    "castopod": {
      "type": "php",
      "root": "/var/www/castopod/public/",
      "script": "index.php"
    }
  },
  "access_log": {
    "path": "/dev/stdout"
  },
  "settings": {
    "http": {
      "body_read_timeout": $CP_TIMEOUT,
      "max_body_size": $CP_MAX_BODY_SIZE_BYTES,
      "static": {
        "mime_types": {
          "text/vtt": [".vtt"],
          "text/srt": [".srt"]
        }
      }
    }
  }
}
