File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ def setup_couchdb():
66
66
return {
67
67
# hardcode port for backend access
68
68
'command' : cmd ,
69
- 'port' : 5984
69
+ 'port' : 5984 ,
70
+ 'request_headers_override' : {"Authorization" : "Basic YWRtaW46YWRtaW4=" }
70
71
}
71
72
72
73
def setup_panel ():
Original file line number Diff line number Diff line change 30
30
< div id ="mosaic_editor "> </ div >
31
31
< script >
32
32
{ % if couchdb % }
33
- var url = new URL ( "/couchdb/" , window . location )
34
- url . username = "admin"
35
- url . password = "admin"
36
- window . dburl = url . href
33
+ window . dburl = new URL ( "/couchdb/" , window . location ) . href
37
34
{ % endif % }
38
35
window . notebookurl = "../../lab"
39
36
window . simulatorurl = "../../panel/app"
Original file line number Diff line number Diff line change 30
30
< div id ="mosaic_libman "> </ div >
31
31
< script >
32
32
{ % if couchdb % }
33
- var url = new URL ( "/couchdb/" , window . location )
34
- url . username = "admin"
35
- url . password = "admin"
36
- window . dburl = url . href
33
+ window . dburl = new URL ( "/couchdb/" , window . location ) . href
37
34
{ % endif % }
38
35
</ script >
39
36
< script src ="{{ static_url('common.js') }} "> </ script >
You can’t perform that action at this time.
0 commit comments