Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Point /data to reva frontend #45

Merged
merged 3 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ exclude_paths:
- CHANGELOG.md
- changelog/**
- docs/**
- config/**
- pkg/proto/**
- '**_test.go'
- .codacy.yml
Expand Down
9 changes: 9 additions & 0 deletions config/proxy-example-migration.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
{
"endpoint": "/index.php/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/data",
"backend": "http://localhost:9140"
}
]
},
Expand Down Expand Up @@ -107,6 +111,11 @@
{
"endpoint": "/index.php/",
"backend": "https://demo.owncloud.com"
},
{
"endpoint": "/data",
"backend": "https://demo.owncloud.com",
"apache-vhost": true
}
]
}
Expand Down
9 changes: 9 additions & 0 deletions config/proxy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
{
"endpoint": "/index.php/",
"backend": "http://localhost:9140"
},
{
"endpoint": "/data",
"backend": "http://localhost:9140"
}
]
},
Expand Down Expand Up @@ -103,6 +107,11 @@
{
"endpoint": "/index.php/",
"backend": "https://demo.owncloud.com"
},
{
"endpoint": "/data",
"backend": "https://demo.owncloud.com",
"apache-vhost": true
}
]
}
Expand Down
9 changes: 9 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ func defaultPolicies() []config.Policy {
Endpoint: "/index.php/",
Backend: "http://localhost:9140",
},
{
Endpoint: "/data",
Backend: "http://localhost:9140",
},
},
},
{
Expand Down Expand Up @@ -312,6 +316,11 @@ func defaultPolicies() []config.Policy {
Backend: "https://demo.owncloud.com",
ApacheVHost: true,
},
{
Endpoint: "/data",
Backend: "https://demo.owncloud.com",
ApacheVHost: true,
},
},
},
}
Expand Down