-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
v3: improve proxy.DomainForward
method signature
#2326
Conversation
@ReneWerner87 please review later. |
But this is a breaking change |
@ReneWerner87 so what should I do if the PR labeled |
We can not accept the improvent in v2 |
@ReneWerner87 please look at commit 14cf4b6, I just changed the way to use DomainForward so I can add domains. Does this include Breaking change? |
The first and second parameter of DomainForward is a complete different datatype |
@ReneWerner87 Ok thanks for the info. Does this mean it will be merged in the next minor version? |
This means that we will be able to adjust it in the next major version at the earliest. This will probably come out in a few months |
@ReneWerner87 maybe I can just add documentation when using multiple domains. But do I have to remove the fork first? |
Ok, documentation changes are okay |
ok I will add the documentation later |
@ryanbekhen can you create/edit a PR that targets v3 branch. I think this is nice change for v3. |
@efectn Yes, I can. So, when can I add this feature? |
When you want. I merged master into the v3 beta branch |
@efectn Previously I added 2 features, namely proxy.DomainForward and proxy.BalancerForward. Do I add these two features to v3 or only proxy.DomainForward? |
They are already exists on v3-beta -> https://github.com/gofiber/fiber/blob/v3-beta/middleware/proxy/proxy.go#L176 |
@efectn I have changed the target branch to v3-beta |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some linting errors that unrelated to this PR. I'll fix them later.
@ryanbekhen can you check my last comments |
@efectn i have changed assertequals to require in last commit |
proxy.DomainForward
method signature
@efectn I'm going to update the readme on the proxy as the signature section hasn't been updated yet. |
prepare release v2.47.0
fix: docs api fiber custom config Co-authored-by: haoc <[email protected]>
* feat: add a variadic parameter on OnListenHandler * feat: accept a variadic ListenData in startupProcess parameters * feat: add startupProcess variadic ListenData to function * refactor: use runOnListenHooks instead of startupProcess for run onListenHooks * refactor: remove variadic to make codes straightforward * fix: add listen data to runOnListenHooks * test: add listenData parameter to OnListen tests * docs: update OnListen docs * fix: remove unused codes * docs: add tabs to onListen hook example * docs: add if statement to docs example * docs: replace fmt with log * docs: fix return value of example * docs: make 0.0.0.0 string a constant * fix: change type of TLS from string to bool * fix: return bool instead of a string * docs: update example with new TLS type * fix: change name tls to isTls to prevent shadowing tls variable * style: make syntax of onListen example shorter * refactor: remove unused no-lint comment * refactor: change isTls to isTLS * fix: add nolint for isTLS bool param * Update listen.go --------- Co-authored-by: M. Efe Çetin <[email protected]>
correct docs syntax error
* Migrate to golang official govulncheck action * Remove unsupported go version from govulncheck * Update vulncheck.yml * Update vulncheck.yml * Update template to disable caching * Run checkout before setup-go
* Bump github.com/valyala/fasthttp from 1.47.0 to 1.48.0 Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp) from 1.47.0 to 1.48.0. - [Release notes](https://github.com/valyala/fasthttp/releases) - [Commits](valyala/fasthttp@v1.47.0...v1.48.0) --- updated-dependencies: - dependency-name: github.com/valyala/fasthttp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * repair test setup for this change "Request timeout settings for the same domain name are reused #1558" valyala/fasthttp#1558 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: René Werner <[email protected]>
* Fix logger colors * Fix tests Basically add ˙enableColors: true˙ back to default config
correct spacings
Fix: typo in ctx.md
* Fix: typo in client.go * Fix: typo in ctx.go * Fix: typo in path.go * Fix: typo in router.go * Fix: typo in adaptor.go
* add log for fiber * replace log in fiber * add Log use to adapt for log libraries * Update app.go Co-authored-by: Tomás Warynyca <[email protected]> * wip: add log docs * add WithLogger use to print key and value * remove CtxLogger and add WithContext use to bind Context * fix errcheck * fix errcheck * update log.md --------- Co-authored-by: Tomás Warynyca <[email protected]>
…rwarded-For improperly (#2520) Update ctx.md Add a warning on security implications when using X-Forwarded-For improperly
* - fixed validation-guide * 06/23/2023 14:39:08 - small update * 06/23/2023 14:51:31 * 06/23/2023 14:53:47 * () * () * 06/25/2023 18:07:46 fix naming * 06/26/2023 09:31:57 * 06/26/2023 09:35:39 - fix indentation * 06/26/2023 09:37:48 - formatted with go fmt * 06/27/2023 19:24:42 - update to v10 * 06/27/2023 19:27:17 - update validator to v10 * 06/27/2023 23:38:38 - fix var name * 06/27/2023 23:40:47 - fix var name
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0. - [Commits](golang/sys@v0.9.0...v0.10.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 📝 docs: update sync_docs.sh script * 📝 docs: update sync_docs.sh script
fix dark and light mode picture https://github.blog/changelog/2021-11-24-specify-theme-context-for-images-in-markdown/
Description
I want to patch proxy.DomainForward which only works on one domain.
Case:
a.example.com will not work and only b.example.com will work.
Problem Solving:
i made it easier as below.
Type of change
Please delete options that are not relevant.
Checklist:
Commit formatting:
Use emojis on commit messages so it provides an easy way of identifying the purpose or intention of a commit. Check out the emoji cheatsheet here: https://gitmoji.carloscuesta.me/