OpenGarage Forums OpenGarage Firmware Using protocol-relative URLs to allow for SSL encryption

  • This topic has 1 reply, 2 voices, and was last updated 3 years ago by Ray.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #889

    dp0750
    Participant

    I would like to suggest replacing hard-coded HTTP URLs in the <head> of the html pages contained in the latest OpenGarage firmware (v1.0.7) with the protocol-relative version. This is useful to be able to access the embedded web server through a proxy that enforces SSL encryption (and, if desired, additional password protection).

    That is, instead replace these lines of the current code in files ap_home.html, sta_home.html, sta_logs.html, sta_options.html, sta_update.html:

    <head>
    <title>OpenGarage</title>
    <meta name=’viewport’ content=’width=device-width, initial-scale=1′>
    <link rel=’stylesheet’ href=’http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css&#8217; type=’text/css’>
    <script src=’http://code.jquery.com/jquery-1.9.1.min.js&#8217; type=’text/javascript’></script>
    <script src=’http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js&#8217; type=’text/javascript’></script>
    </head>

    with these lines:

    <head>
    <title>OpenGarage</title>
    <meta name=’viewport’ content=’width=device-width, initial-scale=1′>
    <link rel=’stylesheet’ href=’//code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css’ type=’text/css’>
    <script src=’//code.jquery.com/jquery-1.9.1.min.js’ type=’text/javascript’></script>
    <script src=’//code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js’ type=’text/javascript’></script>
    </head>

    I have already made these changes in my local version (then running gen_htmls.sh before recompiling) and it works perfectly. I suggest this because it may be useful for others (and to those who will not use it the change will make no difference).

    Also, note that the current code in the file gen_htmls.sh calls html2esp, when that program is now called html2raw.

    #897

    Ray
    Keymaster

    OK, that’s a good point — haven’t thought about it. Added to todo list now.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenGarage Forums OpenGarage Firmware Using protocol-relative URLs to allow for SSL encryption