devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

Run devdocs container as a subpath

Open dan83g opened this issue 1 year ago • 3 comments

Feature request

Is it possible to run the DevDocs Docker container as a subpath? For example: https://example.com/devdocs

Summary

Add environmental variable PATH_PREFIX(SCRIPT-NAME) or add special header for the reverse proxy (X-SCRIPT-NAME).

Examples

https://example.com/devdocs

dan83g avatar Dec 26 '24 16:12 dan83g

@simon04 is the best person to judge if this is feasible, but I don't think it's possible at the moment.

Would a subdomain work for you?

ojeytonwilliams avatar Jan 03 '25 08:01 ojeytonwilliams

Thanks, I did it with the rewrite nginx directive. And changing the config.ru file.

map '/devdocs/' do run App end

dan83g avatar Jan 03 '25 18:01 dan83g

Oh, wow, that's a lot easier than I thought.

Did you run into any issues? If not, we can support this with an environment variable.

ojeytonwilliams avatar Jan 06 '25 13:01 ojeytonwilliams