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

support serving files in non-root path #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkupersmith
Copy link
Contributor

I'd like to host my peach docs instance from a non-root path of my webserver, for example; example.com/peach instead of peach.example.com.

I would like to add the APP_ROOT key to the site section of app.ini. This setting will prepend APP_ROOT to all routes and URLs served by peach itself and by the default template files.

It's possible to do some of this by rewriting the path when proxying a request but this only works if you can rewrite the application responses as well.

app.ini for example.com/peach:

[site]
APP_ROOT = /peach

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

Successfully merging this pull request may close these issues.

None yet

1 participant