Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run devdocs container as a subpath #2396

Open
dan83g opened this issue Dec 26, 2024 · 3 comments
Open

Run devdocs container as a subpath #2396

dan83g opened this issue Dec 26, 2024 · 3 comments
Labels

Comments

@dan83g
Copy link

dan83g commented Dec 26, 2024

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 dan83g added the feature label Dec 26, 2024
@ojeytonwilliams
Copy link
Contributor

@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?

@dan83g
Copy link
Author

dan83g commented Jan 3, 2025

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

map '/devdocs/' do
run App
end

@ojeytonwilliams
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants