Giter Club home page Giter Club logo

Comments (5)

matthewalanpenning avatar matthewalanpenning commented on May 21, 2024 1

Thanks. I am glad that you got things working. I do use a docker container as well for the lxd dashboard.I find LXD wonderful for setting up infrastructure and custom applications and then often use docker containers for the simple application deployments. I find mixing both technologies works well.

from lxd-dashboard.

matthewalanpenning avatar matthewalanpenning commented on May 21, 2024

@kinghat. The first set of steps look good for setting up the webserver. You should not need to do anything else to after restarting Nginx. You can then connect to the dashboard by navigating in your web browser to the IP address of the nginx server you installed. So adding the lxc device is not necessary.
The LXD Dashboard does not have to be installed on your actual LXD servers. It connects to your LXD servers using the REST API.
Let me know if you still are having issues.

from lxd-dashboard.

kinghat avatar kinghat commented on May 21, 2024

You can then connect to the dashboard by navigating in your web browser to the IP address of the nginx server you installed. So adding the lxc device is not necessary.
The LXD Dashboard does not have to be installed on your actual LXD servers. It connects to your LXD servers using the REST API.

i installed lxd-dashboard into a container on the server where my other containers are so to be able to access it across my network dont i need to map the ports to the lxd-dashboard container i created and installed to?

from lxd-dashboard.

matthewalanpenning avatar matthewalanpenning commented on May 21, 2024

Ah, ok I see what you are doing now. Yes you will need to map the ports. I think the issue may be that Nginx listens on port 80 by default, and your current setup is looking for the web server to be listening on on a different port than that. You can change the listening port in the Nginx default file that was moved to /etc/nginx/sites-available/. Based on your setup the Nginx port should be changed to 8080. Let me know if that fixes it.
You would then need to restart Nginx after changing the default file.
Also you would want to connect using http:// rather than https:// unless you have reconfigured the default nginx file to use ssl/tls certs.

from lxd-dashboard.

kinghat avatar kinghat commented on May 21, 2024

Ah, ok I see what you are doing now. Yes you will need to map the ports. I think the issue may be that Nginx listens on port 80 by default, and your current setup is looking for the web server to be listening on on a different port than that. You can change the listening port in the Nginx default file that was moved to /etc/nginx/sites-available/. Based on your setup the Nginx port should be changed to 8080. Let me know if that fixes it. You would then need to restart Nginx after changing the default file. Also you would want to connect using http:// rather than https:// unless you have reconfigured the default nginx file to use ssl/tls certs.

ya this was an issue with my config. i got it working with:

devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  httpProxy:
    connect: tcp:127.0.0.1:80
    listen: tcp:0.0.0.0:4111
    type: proxy

ironically, ive opted to use the docker container instead as its much lighter on resources. thanks for providing that! also, thanks for the work you've put into this. its very clean.

from lxd-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.