title: Rails: change localhost:3000 to https://
body: <p>I'm in development and using the <code>html5 geolocation</code> on my <code>rails 5</code> app:</p>
  
  <pre><code>function getLocation() {
      if (navigator.geolocation) {
      navigator.geolocation.getCurrentPosition(setGeoCookie);
      } else {
          x.innerHTML = "Geolocation is not supported by this browser.";
      }
  }
  
  function setGeoCookie(position) {
      var cookie_val = position.coords.latitude + "|" + position.coords.longitude;
      document.cookie = "lat_lng=" + escape(cookie_val);
  }
  </code></pre>
  
  <p>it's working fine with <code>firefox</code> and all browsers except for <code>safari</code>. With <code>safari</code> the <code>allow pop up</code> doesn't appear. </p>
  
  <p>I did some research and found..... that safari (unlike Chrome and Firefox) does not allow access to geolocation over the HTTP protocol - only HTTPS. Even for localhost.</p>
  
  <p>The solution is to either use another browser in development or serve Rails over HTTPS. </p>
  
  <p>Can someone give me pointers on how to serve Rails over HTTPS in development?</p>