mirror of
https://github.com/nspcc-dev/gh-push-to-neofs.git
synced 2026-03-01 04:28:40 +00:00
Consider changing NEOFS_HTTP_GATE to HTTP_URL_PREFIX #14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Mar 28, 2024).
Is your feature request related to a problem? Please describe.
I'm always frustrated when we're referring to outdated components (HTTP gateway) and using instance-specific configurations by default (
/$CID/pathonly works because of rewrites, it's not a native HTTP or REST interface). There also can be cases where people run a gate of their own with some better URL scheme (likereports.example.com/path) and NEOFS_HTTP_GATE puts too many restrictions on them (implying/$CID/path)Describe the solution you'd like
Rework NEOFS_HTTP_GATE into HTTP_URL_PREFIX (but keep old one for compatibility unles HTTP_URL_PREFIX is set), this would work like
leaving gateway/rewrite specifics out of scope.
Additional context
https://github.com/nspcc-dev/neofs-rest-gw/issues/156
@roman-khimov commented on GitHub (Mar 28, 2024):
In fact,
BASE_URLthat's used internally is exactly that, it just needs to be exposed properly. And it includesURL_PREFIXas well.@roman-khimov commented on GitHub (May 15, 2024):
URL_PREFIXmakes no sense in this scheme.