OpenGarage › Forums › OpenGarage Firmware › Using protocol-relative URLs to allow for SSL encryption
- This topic has 1 reply, 2 voices, and was last updated 6 years, 9 months ago by Ray.
-
AuthorPosts
-
December 29, 2017 at 5:00 am #889
dp0750ParticipantI 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’ type=’text/css’>
<script src=’http://code.jquery.com/jquery-1.9.1.min.js’ type=’text/javascript’></script>
<script src=’http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js’ 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.
January 1, 2018 at 11:50 pm #897
RayKeymasterOK, that’s a good point — haven’t thought about it. Added to todo list now.
-
AuthorPosts
- You must be logged in to reply to this topic.
OpenGarage › Forums › OpenGarage Firmware › Using protocol-relative URLs to allow for SSL encryption