azukaar / Cosmos-Server

☁️ The Most Secure and Easy Selfhosted Home Server. Take control of your data and privacy without sacrificing security and stability (Authentication, anti-DDOS, anti-bot)
https://cosmos-cloud.io
Other
3.65k stars 130 forks source link

[BUG]: #276

Closed windowsagent closed 4 months ago

windowsagent commented 4 months ago

What happened?

Whenever I try opening syncthing, forwarded using a servapp url (prefix), I get all sort of errors (as it's trying to access locations like /syncthing/app.js, but it fails). I'm not sure how to forward this application through a prefix, as I can't use subdomains.

What should have happened?

Syncthing container forwarded such that a client requests "/syncthing/app.js" and it gets the needed file from the syncthing container.

How to reproduce the bug?

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Relevant log output

{
  "id": "668df3fae975bf8b68d97184",
  "label": "Proxy Response syncthing error",
  "application": "Cosmos",
  "eventId": "cosmos.proxy.response.syncthing.error",
  "date": "2024-07-10T02:37:43.269Z",
  "level": "warning",
  "data": {
    "bytes": 19,
    "clientID": "177.249.162.151",
    "method": "GET",
    "route": "syncthing",
    "status": 404,
    "time": 0.000726043,
    "url": "/syncthing/app.js"
  },
  "object": "route@syncthing"
}

Other details

No response

System details

azukaar commented 4 months ago

Most apps dont support sub-path, if they do you need to add it as a config in the app itself