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
2.99k stars 108 forks source link

[FEAT]: Multiple locations for a proxy destination? #134

Closed kbekus closed 8 months ago

kbekus commented 8 months ago

Feature Description

hi there, nice front end. Does Cosmos support locations?

For example I self host a mail server running on a VM. To access the webmail interface I just use https://webmail.domain.com/ However to sync email to my phone I need to use https://webmail.domain.com/Microsoft-Server-ActiveSync And to sync calendars I need to use https://webmail.domain.com/dav These sub locations all point to the same destination VM inside my network.

Apache handles this with the ability to have several locations against a single domain. Nginx Proxy Manager also handles this via several locations within a single destination domain.

azukaar commented 8 months ago

Yes take a look at how it is handled for Nextcloud: https://github.com/azukaar/cosmos-servapps-official/blob/master/servapps/Nextcloud/cosmos-compose.json#L52