{
    "version": "https:\/\/jsonfeed.org\/version\/1.1",
    "title": "Discover Docker, K8s and Hashicorp Nomad with Maksym Prokopov: posts tagged server sent events",
    "_rss_description": "The blog about containerisation, virtual machines and useful shell snippets and findings",
    "_rss_language": "en",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/blog.it-premium.com.ua\/tags\/server-sent-events\/",
    "feed_url": "https:\/\/blog.it-premium.com.ua\/tags\/server-sent-events\/json\/",
    "icon": false,
    "authors": [
        {
            "name": "Maksym Prokopov",
            "url": "https:\/\/blog.it-premium.com.ua\/",
            "avatar": false
        }
    ],
    "items": [
        {
            "id": "157",
            "url": "https:\/\/blog.it-premium.com.ua\/all\/nginx-proxy-configuration-for-server-sent-events-and-ssl\/",
            "title": "nginx-proxy configuration for server sent events and SSL",
            "content_html": "<p>I’ve encountered issue with dropped SSE connection when deployed SSE based sinatra app with SSL certificates and nginx-proxy docker container.<\/p>\n<p>First, create vhost.d directory on host and connect it to \/etc\/nginx\/vhost.d in nginx-proxy container via volume. Create corresponding file to your VIRTUAL_HOST name, which will be included upon nginx startup. In my case that was SSE stream.it-premium.com.ua.<\/p>\n<p>My \/home\/nexus\/vhost.d\/stream.it-premium.com.ua file is following<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">proxy_set_header Connection &#039;&#039;;\nproxy_http_version 1.1;\nchunked_transfer_encoding off;\nproxy_buffering off;<\/code><\/pre><p>But it has still issues with dropped connection.<br \/>\nFinally I’ve updated app code with following headers:<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">response[&#039;Cache-control&#039;] = &#039;no-cache&#039;\nresponse[&#039;X-Accel-Buffering&#039;] = &#039;no&#039;<\/code><\/pre><p>And everything run smoothly after deploy.<\/p>\n",
            "date_published": "2016-10-18T10:07:28+01:00",
            "date_modified": "2016-10-18T10:07:25+01:00",
            "tags": [
                "docker",
                "nginx",
                "server sent events",
                "ssl"
            ],
            "_date_published_rfc2822": "Tue, 18 Oct 2016 10:07:28 +0100",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "157",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "highlight\/highlight.js",
                    "highlight\/highlight.css"
                ],
                "og_images": []
            }
        }
    ],
    "_e2_version": 4134,
    "_e2_ua_string": "Aegea 11.3 (v4134)"
}