oxzi / gosh

Authenticationless HTTP file upload server
GNU General Public License v3.0
16 stars 2 forks source link

Feature request: allow gosh to be run in a subdir #24

Closed riotbib closed 1 year ago

riotbib commented 1 year ago

Hi @oxzi, would a change to the source to allow gosh to be run in a sub directory be possible? Thanks.

oxzi commented 1 year ago

Thanks for your question.

However, could you please elaborate what you are trying to achieve? You can already configure the store's location through goshd's -store argument. Or are you trying to have a running gosh instance behind a HTTP reverse proxy on a sub path, e.g., http://example.org/gosh pointing to a gosh instance?

riotbib commented 1 year ago

Thanks for your reply.

Yes, I meant the latter. Excuse me confusing the terms.

Would this feature be hard to implement?

oxzi commented 1 year ago

Should be a quick patch and I will try to get to this one the other day. Feel free to ping me if this is still open in one or two months.

oxzi commented 1 year ago

@riotbib: Please feel free to test the recently pushed changes. By adding -url-prefix /gosh you should be able to host a gosh under the /gosh path.

riotbib commented 1 year ago

Works fine. Thanks a lot, @oxzi!