Liveblog working only in HTTP(80)
  • Hello,
    Please, could you check this issue : https://github.com/liveblog/liveblog/issues/387
    How is it possible to configure and run Liveblog's docker to serve HTTPS content only.
    Thanks a lot in advance
  • 1 Comment sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    the current superdesk docker image is for development purposes and can't be recommended for production using. 
    the simplest way to up https:
    1. move binded docker http port to non-80 port (e.g 82)
    2. start nginx server with ssl support on host where docker is running 

    the site config looks like:

    server {
        listen  80;
        listen  443 ssl;

        server_name some_public_name;

         location / {
            proxy_pass "http://localhost:82";
            proxy_set_header Host $host;
        }

        location /ws {
            proxy_pass "http://localhost:82";
    proxy_set_header Host $host;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_http_version 1.1;
    proxy_buffering off;
    proxy_read_timeout 3600;
        }
    }

    don't forget to define ssl parameters and certificates

    3. define superdesk parameters:
       - SUPERDESK_URL=https://some_public_name/api
       - SUPERDESK_WS_URL=wss://some_public_name/ws
       - SUPERDESK_CLIENT_URL=https://some_public_name


    4. restart docker, nginx


    Post edited by Andrey Podshivalov at 2016-06-07 05:02:14