{"action":"created","issue":{"url":"https://api.github.com/repos/nginx/unit/issues/73","repository_url":"https://api.github.com/repos/nginx/unit","labels_url":"https://api.github.com/repos/nginx/unit/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/nginx/unit/issues/73/comments","events_url":"https://api.github.com/repos/nginx/unit/issues/73/events","html_url":"https://github.com/nginx/unit/issues/73","id":286552515,"number":73,"title":"YAML format for config","user":{"login":"n0madic","id":800462,"avatar_url":"https://avatars1.githubusercontent.com/u/800462?v=4","gravatar_id":"","url":"https://api.github.com/users/n0madic","html_url":"https://github.com/n0madic","followers_url":"https://api.github.com/users/n0madic/followers","following_url":"https://api.github.com/users/n0madic/following{/other_user}","gists_url":"https://api.github.com/users/n0madic/gists{/gist_id}","starred_url":"https://api.github.com/users/n0madic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0madic/subscriptions","organizations_url":"https://api.github.com/users/n0madic/orgs","repos_url":"https://api.github.com/users/n0madic/repos","events_url":"https://api.github.com/users/n0madic/events{/privacy}","received_events_url":"https://api.github.com/users/n0madic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-01-07T08:02:33Z","updated_at":"2018-05-14T10:05:18Z","closed_at":null,"author_association":"NONE","body":"Is it possible to add YAML support for configs as more compact, intuitive and easier to edit?\r\nIt looks better \r\n```yaml\r\nlisteners:\r\n  \"*:8300\":\r\n    application: blogs\r\napplications:\r\n  blogs:\r\n    type: php\r\n    workers: 20\r\n    root: /www/blogs/scripts\r\n    index: index.php\r\n```\r\nthan this\r\n```json\r\n{\r\n    \"listeners\": {\r\n        \"*:8300\": {\r\n            \"application\": \"blogs\"\r\n        }\r\n    },\r\n\r\n    \"applications\": {\r\n        \"blogs\": {\r\n            \"type\": \"php\",\r\n            \"workers\": 20,\r\n            \"root\": \"/www/blogs/scripts\",\r\n            \"index\": \"index.php\"\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nSince JSON is a subset of YAML, it is possible to use both formats simultaneously.\r\n  "},"comment":{"url":"https://api.github.com/repos/nginx/unit/issues/comments/388764838","html_url":"https://github.com/nginx/unit/issues/73#issuecomment-388764838","issue_url":"https://api.github.com/repos/nginx/unit/issues/73","id":388764838,"user":{"login":"qf0129","id":17614422,"avatar_url":"https://avatars2.githubusercontent.com/u/17614422?v=4","gravatar_id":"","url":"https://api.github.com/users/qf0129","html_url":"https://github.com/qf0129","followers_url":"https://api.github.com/users/qf0129/followers","following_url":"https://api.github.com/users/qf0129/following{/other_user}","gists_url":"https://api.github.com/users/qf0129/gists{/gist_id}","starred_url":"https://api.github.com/users/qf0129/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qf0129/subscriptions","organizations_url":"https://api.github.com/users/qf0129/orgs","repos_url":"https://api.github.com/users/qf0129/repos","events_url":"https://api.github.com/users/qf0129/events{/privacy}","received_events_url":"https://api.github.com/users/qf0129/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T10:05:18Z","updated_at":"2018-05-14T10:05:18Z","author_association":"NONE","body":"I want to know why not put \"listener\" in the \"application\" node. Thanks\r\n\r\nlike this：\r\n`\r\n{\r\n    \"python_app\": {\r\n            \"listener\": \"127.0.0.1:8001\",\r\n            \"type\": \"python 3\",\r\n            \"processes\": 2,\r\n            \"module\": \"wsgi\",\r\n            \"path\": \"/opt/python_app\"\r\n    },\r\n    \"php_app\": {\r\n            \"listener\": \"127.0.0.1:8002\",\r\n            \"type\": \"php\",\r\n            \"processes\": 2,\r\n            \"index\": \"index.php\",\r\n            \"root\": \"/opt/php_app\"\r\n    }\r\n}\r\n`"}}
{"actor":{"display_login":"qf0129"}}