cypht-org / cypht-docker

Legacy Docker image setup files to run Cypht
GNU General Public License v2.0
39 stars 24 forks source link

Allow cypht to run in another path #7

Open mildred opened 3 years ago

mildred commented 3 years ago

https://github.com/jasonmunro/cypht-docker/blob/2a8115a2750ce5aa4c3ece12f2ea914c46116afd/image/docker-entrypoint.sh#L212

Reverse proxying Cypht docker, I need to put it in its own virtualhost (https://webmail.example.org). I'd prefer to use a subpath (https://example.org/webmail/). I believe that customizing the above symlink could do that.

dest="/var/www/$CYPHT_PREFIX_PATH"
mkdir -p "$(dirname "$dest")"
ln -s /usr/local/share/cypht/site "${dest%%/}"

Or in a more hacky way:

docker run \
  ...
  --entrypoint /bin/sh \
  sailfrog/cypht-docker:latest \
  -c "mkdir -p /usr/local/share/cypht/site; ln -s . /usr/local/share/cypht/site/webmail; exec docker-entrypoint.sh"
marclaporte commented 4 months ago

The good, the bad and the ugly: We need a Docker expert to guide us!