Skip to content
Snippets Groups Projects
Commit 47297f8c authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bug/adapt-to-frontend' into 'main'

Traefik Route update and IODC Mock server update

Closes #25 and #24

See merge request denbi/object-storage-access!14
parents 97e8ee85 e257bd7e
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,6 @@
"SubjectId": "1",
"Username": "skywalker",
"Password": "password",
"Name": "Luke Skywalker",
"Claims": [
{
"Type": "name",
......
......@@ -2,6 +2,16 @@
[http.middlewares]
[http.middlewares.api-stripprefix.stripPrefix]
prefixes = ["/api"]
[http.middlewares.cors-header.headers]
accessControlAllowMethods= ["GET", "OPTIONS", "PUT", "POST"]
accessControlAllowOriginList = ["http://localhost:9999"]
accessControlAllowHeaders = ["amz-sdk-invocation-id","amz-sdk-request","authorization","content-type","x-amz-content-sha256","x-amz-date","x-amz-user-agent"]
accessControlExposeHeaders = ["Etag"]
accessControlMaxAge = 100
addVaryHeader = true
isDevelopment = true
[http.middlewares.testHeader.headers.customRequestHeaders]
X-Script-Name = "test" # Adds
[http.routers]
......@@ -10,6 +20,11 @@
service = "proxyapi"
rule = "PathPrefix(`/api`)"
middlewares = ["api-stripprefix"]
[http.routers.rgw-http]
entryPoints = ["rgw"]
service = "rgw"
rule = "Host(`localhost`)"
middlewares = ["cors-header"]
[http.routers.api-ui]
entryPoints = ["http"]
service = "proxyapi-ui"
......@@ -25,4 +40,8 @@
[http.services.proxyapi-ui.loadBalancer]
[[http.services.proxyapi-ui.loadBalancer.servers]]
url = "http://127.0.0.1:5173"
#url = "http://127.0.0.1:8080"
#url = "http://127.0.0.1:4173"
[http.services.rgw]
[http.services.rgw.loadBalancer]
[[http.services.rgw.loadBalancer.servers]]
url = "http://192.168.192.102:8000"
[entryPoints]
[entryPoints.http]
address = ":9999"
[entryPoints.rgw]
address = ":9998"
[entryPoints.rgw.forwardedHeaders]
insecure = true
[providers]
[providers.file]
filename = "routes.toml"
[accessLog]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment