Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
c211055b
Commit
c211055b
authored
5 years ago
by
Seva
Committed by
Adrien Béraud
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
tester: add https support to proxy_node
parent
fafe9719
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/proxy_node.html
+9
-3
9 additions, 3 deletions
tools/proxy_node.html
with
9 additions
and
3 deletions
tools/proxy_node.html
+
9
−
3
View file @
c211055b
...
...
@@ -116,13 +116,19 @@ $(function() {
const serverStatus = $("#serverStatus");
const serverBtn = $("#serverBtn");
setServer = function(event) {
server =
'
http
:
//'+
serverValue.val() + '/';
server = serverValue.val() +
'
/
'
;
serverStatus.empty();
serverBtn.button(
'
loading
'
);
$.getJSON(server, function(data){
$(
'
<
span
><
b
>
Node
<
/b> '+data.node_id+'</
span
>
'
).appendTo(serverStatus).hide().fadeIn();
}).fail(function(error) {
serverStatus
.
html
(
"
<div class='alert alert-danger' style='margin-bottom: 0px;'><span class='glyphicon glyphicon-remove' aria-hidden='true'></span> Can't access node</div>
"
);
var message = " Cant
'
access
node
.
"
if (serverValue.val().indexOf(
"
https
"
) != -1){
message +=
"
<
/br></
br
>
Self
-
signed
certificate
must
be
allowed
in
browser
.
"
}
serverStatus.html(
"
<
div
class
=
'
alert alert-danger
'
style
=
'
margin-bottom: 0px;
'
>
"
+
"
<
span
class
=
'
glyphicon glyphicon-remove
'
aria
-
hidden
=
'
true
'
><
/span>"
+
message
+
"
</div>
"
);
}).
always
(
function
(
error
)
{
serverBtn
.
button
(
'
reset
'
);
});
...
...
@@ -143,7 +149,7 @@ $(function() {
<div
class=
"well well-sm"
style=
"margin-top:10px; margin-bottom:0px;"
>
<form
id=
"serverForm"
class=
"form-inline"
onsubmit=
"return setServer();"
style=
"margin-bottom:4px;"
>
<div
class=
"input-group"
>
<input
type=
"text"
class=
"form-control"
id=
"serverValue"
placeholder=
"Proxy server"
value=
"127.0.0.1:8080"
/>
<input
type=
"text"
class=
"form-control"
id=
"serverValue"
placeholder=
"Proxy server"
value=
"
http://
127.0.0.1:8080"
/>
<span
class=
"input-group-btn"
>
<button
id=
"serverBtn"
type=
"submit"
class=
"btn btn-default"
data-loading-text=
"<i class='fa fa-circle-o-notch fa-spin'></i>"
><span
class=
"glyphicon glyphicon-refresh"
aria-hidden=
"true"
></span></button>
</span>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment