-
Notifications
You must be signed in to change notification settings - Fork 534
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
change: remove listen.host from api/conf/conf.yaml #1767
Conversation
Deploy preview for apisix-dashboard ready! Built with commit 368163e |
bugfix or feature? |
may sync master codes to fix CI |
Codecov Report
@@ Coverage Diff @@
## master #1767 +/- ##
===========================================
- Coverage 72.64% 62.25% -10.39%
===========================================
Files 116 47 -69
Lines 2738 3129 +391
Branches 661 0 -661
===========================================
- Hits 1989 1948 -41
- Misses 749 867 +118
- Partials 0 314 +314
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Please sync the master branch |
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.
Why not set “0.0.0.0” as default?
@@ -33,8 +33,9 @@ jobs: | |||
- name: Modify Config | |||
run: | | |||
sed -i 's/127.0.0.1:2379/172.16.238.10:2379/' api/conf/conf.yaml | |||
sed -i 's/host: 127.0.0.1/host: 0.0.0.0/' api/conf/conf.yaml |
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.
Should add some notes about the default listen IP address(es).
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.
added.
Because in our configuration, So it would be strange to display What do you think? @starsz |
Codecov Report
@@ Coverage Diff @@
## master #1767 +/- ##
==========================================
+ Coverage 71.81% 71.85% +0.03%
==========================================
Files 172 172
Lines 6064 6064
Branches 703 703
==========================================
+ Hits 4355 4357 +2
+ Misses 1466 1463 -3
- Partials 243 244 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -17,10 +17,15 @@ | |||
|
|||
conf: | |||
listen: | |||
host: 127.0.0.1 # `manager api` listening ip or host name |
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.
We still support configuring the host. So can we comment on this instead of removing them?
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.
@starsz your way is better
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.
updated.
api/conf/conf.yaml
Outdated
port: 9000 # `manager api` listening port | ||
allow_list: # If we don't set any IP list, then any IP access is allowed by default. | ||
- 127.0.0.0/24 | ||
- 10.0.0.0/8 |
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.
only one 127.0.0.0/24
is enough.
we can add more comment to show how to set it
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.
updated.
Emmm.Need to fix the link error. @nic-chen |
sure |
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
The configuration item
listen.host
in conf.yaml often confuses users, because when the configuration dashboard can be accessed non-locally, two places need to be modified (the other place is allow_list).remove the
listen.host
configuration item from conf.yaml, but retain the feature, and users can add it when they need it.What changes will this PR take into?
remove listen.host from api/conf/conf.yaml
set ServerHost in the code to an empty string
Related issues
fix/resolve #1743
Checklist: