@@ -5,6 +5,7 @@ defmodule Dispatcher do
|
||||
html: ["text/html", "application/xhtml+html"],
|
||||
json: ["application/json", "application/vnd.api+json"],
|
||||
upload: ["multipart/form-data"],
|
||||
sparql_json: ["application/sparql-results+json"],
|
||||
any: [ "*/*" ],
|
||||
]
|
||||
|
||||
@@ -239,6 +240,10 @@ defmodule Dispatcher do
|
||||
forward conn, path, "http://uri-info/"
|
||||
end
|
||||
|
||||
match "/sparql/*path", %{ layer: :api_services, accept: %{ sparql_json: true } } do
|
||||
forward conn, path, "http://db:8890/sparql/"
|
||||
end
|
||||
|
||||
|
||||
###############################################################
|
||||
# frontend layer
|
||||
|
||||
@@ -143,7 +143,7 @@ services:
|
||||
SERVER_PORT: "80"
|
||||
SPARQL_ENDPOINT: "http://db:8890/sparql"
|
||||
LOGGING_LEVEL: "INFO"
|
||||
DEFAULT_GRAPH: "http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin"
|
||||
DEFAULT_GRAPH: "http://mu.semte.ch/graphs/privacy-centric-graph"
|
||||
SESSION_GRAPH: "http://mu.semte.ch/graphs/sessions"
|
||||
labels:
|
||||
- "logging=true"
|
||||
|
||||
Reference in New Issue
Block a user