wishthis / docker

wishthis - Official docker image
https://wishthis.online/
GNU Affero General Public License v3.0
23 stars 3 forks source link

Configurable sub-path to serve #10

Open qdm12 opened 11 months ago

qdm12 commented 11 months ago

Would it be possible to have a configurable subpath to serve withthis for example at example.com/wishthis?

Maybe this should be done in the source code of wishthis though, but I thought I would mention it here too 😉

Hiobi commented 11 months ago

Hi o/

We built our docker image on php:8.1-apache and you can find the configuration file here : https://github.com/wishthis/docker/blob/main/config/wishthis.conf I can check if we can use a dynamic conf for Apache, using docker variable, when the container is run. And ... I'm not very familiar with Apache.

Why not using your (external) web server, like Nginx, Lighttpd or Apache? For example I use SWAG docker image (Nginx) with a reverse proxy to serve wishthis, and all others online stuff I use.

qdm12 commented 11 months ago

I do use Caddy, but any rewriting ends up wrong.

For example example.com/wishthis then redirects to example.com/index.php (it should be wishthis/index.php).

Do you serve it successfully from a subpath?

grandeljay commented 11 months ago

Related: #190