Use public API_BASE for OnlyOffice URLs and revert IP rewriting hack to fix Docker networking
Some checks failed
Automated Container Build / build-and-push (push) Failing after 1m7s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 1m7s
This commit is contained in:
parent
7de186ee05
commit
fd26a165ba
2 changed files with 3 additions and 12 deletions
|
|
@ -52,9 +52,6 @@ func (h *OnlyOfficeHandler) Callback(c *fiber.Ctx) error {
|
|||
// If the server cannot resolve the public URL due to hairpin NAT,
|
||||
// we can rewrite it to use the internal Docker IP
|
||||
downloadUrl := req.Url
|
||||
if strings.HasPrefix(downloadUrl, "https://office.elijahkuntz.com") {
|
||||
downloadUrl = strings.Replace(downloadUrl, "https://office.elijahkuntz.com", "http://192.168.50.81:8084", 1)
|
||||
}
|
||||
|
||||
// Download modified file from Document Server
|
||||
resp, err := http.Get(downloadUrl)
|
||||
|
|
|
|||
Reference in a new issue