Base URL flag
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 178
- Avg merge
- 15d 9h
- Merged PRs (30d)
- 2
Description
Output of rest-server --version
rest-server version rest-server 0.12.0 compiled with go1.20.3 on linux/amd64
What should rest-server do differently?
Would it be possible to add a base url flag?
This way the base part of a request can be ignored, as it was used to route traffic to the server, not the user trying to make a request on the server.
What are you trying to do? What is your use case?
The rest-server is behind an Nginx proxied port. As configured the proxied port does not perform request matching on the base URL. Thus, the rest-server interprets incoming request from the user incorrectly, i.e. it see the request come in as "/base_path/user/..." rather then simply "/user/...".
Did rest-server help you today? Did it make you happy in any way?
The rest-server works great and am very happy with how it is performing!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by tracing how rest-server handles incoming HTTP request paths, then verify the behavior behind the Nginx proxy described in the issue. Done means a configurable base URL is ignored before the REST backend path is interpreted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100