Skip to content
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

First time use: Nginx.conf, manager-api and dashboard #2272

Closed
MrLightSpeed0 opened this issue Sep 21, 2020 · 6 comments
Closed

First time use: Nginx.conf, manager-api and dashboard #2272

MrLightSpeed0 opened this issue Sep 21, 2020 · 6 comments

Comments

@MrLightSpeed0
Copy link

Issue description

I downloaded apisix yesterday and I have encountered a few issues during the build process. The version is apisix 1.5 (the latest one) for Ubuntu 18.04.
#1. at the last step when I run ./bin/apisix start, I got an error message saying the address is not support by protocol. I looked it up and knowing that was related the ipv6 is not supported on, so I went to conf/nginx.conf file and commented out the following two lines:
listen [::]:9080 ...
listen [::]:9443 ...
however, after I ran the start command again, those two values got reverted back (i.e. un-commented) to what they were. it seems like the nginix.conf is regenerated every time when I run the apisix start. Could you please advise how this file is regenerated each time and what I should do to not include them? I did look at my system and ipv6 is indeed disabled and not supported.

#2. I tried to build dashboard, go build needs to import following:
"github.com/apisix/manager-api/conf"
"github.com/apisix/manager-api/log"
"github.com/apisix/manager-api/route"
However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.

#3, Since I could not move forward with #2, I tried to do docker for the dashboard. again it failed with timed-out for what it looked like that something to with GoProxy tried to dial tcp 119.28.201.50:443 I tried to see what the ip address seemed to be un-resolvable. I m from US and didnt think I needed GoProxy. so please advise on this as well.

Thank you!

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: Ubuntu 18.04
@Yiyiyimu
Copy link
Member

Hi @MrLightSpeed0 I'm only familiar with apisix itself, so I could only answer the first question.

Yes nginx.conf would be regenerated each time you start apisix, and if you notice, there is waring on the top of nginx.conf says do not edit this file. The recommended way is to comment out the code in bin/apisix

apisix/bin/apisix

Lines 360 to 365 in 6e0da45

{% if enable_ipv6 then %}
listen [::]:{* node_listen *} {% if enable_reuseport then %} reuseport {% end %};
{% if ssl.enable then %}
listen [::]:{* ssl.listen_port *} ssl {% if ssl.enable_http2 then %} http2 {% end %} {% if enable_reuseport then %} reuseport {% end %};
{% end %}
{% end %} {% -- if enable_ipv6 %}

Hope it helps :)

@Yiyiyimu
Copy link
Member

For the 3rd problem, you could directly remove goproxy
https://github.com/apache/apisix-dashboard/blob/ba185b9e109c945235e61eff3c63a7cabd56d50f/api/Dockerfile#L23-L24
these two lines

@spacewander
Copy link
Member

spacewander commented Sep 22, 2020

For the first problem, you can also disable enable_ipv6 in the config.yaml. There is no need to modify the template code directly.

@spacewander
Copy link
Member

For the remain problems, I create an issue in dashboard: apache/apisix-dashboard#500, and we can move the discussion there.

@Yiyiyimu
Copy link
Member

For the first problem, you can also disable enable_ipv6 in the config.yaml. There is no need to modify the template code directly.

Thx I missed this option

@MrLightSpeed0
Copy link
Author

very nice. thank you so much. that worked well. I can now start apisix! I will follow up on the dashboard question in the other board. let me close this "issue" and I will open a new issue asking another question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants