Skip to content

Commit

Permalink
ssl config
Browse files Browse the repository at this point in the history
  • Loading branch information
balmas committed Sep 12, 2017
1 parent f75b478 commit 0bf9b1d
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/static/configs/auths/perseids_ssl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"perseidsAuth" : {
"type": "CSRF",
"cookie": "csrftoken",
"header": "X-CSRF-Token",
"crossDomain" : true,
"ping" : "https://sosol.perseids.org/sosol/dmm_api/ping",
"skipModes" : [
"viewer"
]
}
}
7 changes: 7 additions & 0 deletions app/static/configs/exit_handler/perseids_ssl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title" : "Perseids",
"route" : "https://sosol.perseids.org/sosol/dmm_api/item/TreebankCite/:doc/return/edit",
"params" : [
"doc"
]
}
53 changes: 53 additions & 0 deletions app/static/configs/resources/perseids_ssl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"perseidsResource" : {
"route" : "https://sosol.perseids.org/sosol/dmm_api/item/TreebankCite/:doc",
"params" : [
"doc"
],
"auth": "perseidsAuth"
},

"perseidsComments" : {
"route" : "https://sosol.perseids.org/sosol/dmm_api/item/TreebankCite/:doc/comments",
"params" : [
"doc"
],
"auth": "perseidsAuth"
},

"lexInvFusekiEndpoint" : {
"route" : "https://services.perseids.org/fuseki/ds/query?format=json"
},

"morphologyServiceLat" : {
"route" : "https://morph.perseids.org/analysis/word?lang=lat&engine=morpheuslat"
},

"morphologyServiceLat2" : {
"route" : "https://morph.perseids.org/analysis/word?lang=lat&engine=whitakerLat"
},

"newMorphologyServiceLat" : {
"route" : "https://morph.perseids.org/analysis/word?lang=lat&engine=morpheuslat"
},

"morphologyServiceGrc" : {
"route" : "https://morph.perseids.org/analysis/word?lang=grc&engine=morpheusgrc"
},

"newMorphologyServiceGrc" : {
"route" : "https://morph.perseids.org/analysis/word?lang=grc&engine=morpheusgrc"
},

"morphologyServicePer" : {
"route" : "https://morph.perseids.org/analysis/word?lang=per&engine=hazm"
},

"sgGrammar" : {
"route" : "https://services.perseids.org/sg/:doc.html"
},

"citeMapper" : {
"route" : "https://services.perseids.org/cite_mapper/find_cite"
}
}
144 changes: 144 additions & 0 deletions app/static/configs/root_files/perseids_ssl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"main" : {
"@include" : "static/configs/layouts/perseids.json",
"auxConfPath": "https://www.perseids.org/tools/arethusa-configs",
"retrievers" : {
"TreebankRetriever" : {
"resource" : "perseidsResource",
"docIdentifier" : "treebank"
}
},
"persisters" : {
"TreebankPersister" : {
"resource" : "perseidsResource",
"docIdentifier" : "treebank"
}
},
"plugins" : [
"text",
"morph",
"relation",
"artificialToken",
"search",
"history",
"comments",
"depTree"
],
"chunkParam" : "chunk",
"showKeys" : true
},

"auths": {
"@include" : "static/configs/auths/perseids_ssl.json"
},

"navbar" : {
"template" : "js/templates/navbar1.html",
"search" : true,
"notifier" : true,
"navigation" : true
},

"resources" : {
"@include" : "static/configs/resources/perseids_ssl.json"
},

"plugins" : {
"text" : {
"main" : true,
"template" : "js/templates/text_with_context.html"
},

"depTree" : {
"main" : true,
"contextMenu" : true,
"contextMenuTemplate": "js/arethusa.dep_tree/templates/context_menu.html",
"template" : "js/templates/dep_tree.html"
},

"search" : {
"template" : "js/templates/search.html",
"regex" : true
},

"morph" : {
"retrievers" : {
"BspMorphRetriever" : {
"resource" : "morphologyServiceLat"
}
},
"template" : "js/templates/morph3.html",
"contextMenu" : true,
"contextMenuTemplate": "js/arethusa.morph/templates/context_menu.html",
"lexicalInventory" : {
"retriever" : {
"LexicalInventoryRetriever" : {
"resource" : "lexInvFusekiEndpoint"
}
}
},
"matchAll" : true,
"@include" : "js/arethusa.morph/configs/morph/lat_attributes.json"
},

"relation" : {
"template" : "js/templates/relation.html",
"contextMenu" : true,
"contextMenuTemplate": "js/arethusa.relation/templates/context_menu.html",
"@include" : "js/arethusa.relation/configs/relation/relations.json"
},

"history" : {
"template" : "js/templates/history.html"
},

"artificialToken" : {
"template" : "js/arethusa.artificial_token/templates/artificial_token.html"
},

"comments" : {
"retriever" : {
"CommentsRetriever" : {
"resource" : "perseidsComments"
}
}
},

"review" : {
"autoDiff" : true,
"template" : "js/arethusa.review/templates/review.html",
"retrievers" : {
"TreebankRetriever" : {
"resource" : "perseidsResource",
"docIdentifier" : "treebankReview",
"preselector" : "w"
}
}
},

"sg" : {
"retriever" : {
"SgGrammarRetriever" : {
"resource" : "sgGrammar"
}
},
"template" : "js/templates/sg.html",
"contextMenu" : true,
"contextMenuTemplate": "js/arethusa.sg/templates/context_menu.html",
"@include" : "js/arethusa.sg/configs/sg2/sg_labels.json"
}
},

"exitHandler" : {
"@include" : "static/configs/exit_handler/perseids_ssl.json"
},
"relocateHandler" : {
"staging" : {
"baseUrl" : "https://www.perseids.org/tools/arethusa-staging/app/#"
}
},

"keyCapture" : {
"@include" : "static/configs/keyboard/key_map.json"
}
}

0 comments on commit 0bf9b1d

Please sign in to comment.