defrexdefrex

My feedback

  1. 403 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)

      Planning to look into it some time soon.

      The main problem is that livereload.js can be accessed via multiple domain names, and even when it’s on localhost, there’s no way to obtain a trusted SSL certificate for localhost. I do have a few options in mind, though.

      defrexdefrex commented  · 

      In case anyone is interested, I solved this problem using nginx as a proxy. I have a self-signed wildcard cert for the domain defrex.dev already installed in my browser.

      In my `nginx.conf`,

      server {
      server_name livereload.defrex.dev;
      listen 443 ssl spdy;

      ssl_certificate /home/defrex/.ssl/wld_defrex_dev.crt;
      ssl_certificate_key /home/defrex/.ssl/wld_defrex_dev.key;

      location / {
      proxy_pass http://localhost:35729;
      }
      }

      I also added this line to my `/etc/hosts` file.

      127.0.0.1 livereload.defrex.dev

      Now I can safely include this in my html,

      <script src="https://livereload.defrex.dev/livereload.js"></script>

    Feedback and Knowledge Base