Giter VIP home page Giter VIP logo

Comments (3)

Laguna-x avatar Laguna-x commented on July 18, 2024

same on clean system

    3  sudo service lxd status
    4  sudo apt-get install npm
    5  sudo npm install -g bower
    6  sudo service apache2 status
    7  sudo apt install apache2
    8  cd /var/www/html/
   10  sudo git clone https://github.com/dobin/lxd-webgui.git
   11  cd lxd-webgui
   13  sudo ln -s `which nodejs` /usr/bin/node
   14  sudo bower install
   16  sudo chown test:test -R ../lxd-webgui
   18  sudo chown test:test -R /home/test/.config/configstore/
   20  sudo chown test:test -R /home/test/.config
   22  sudo npm install angular
   23  bower install
   24  cd ~
   25  ls
   26  openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
   27  cd /var/www/html/lxd-webgui/
   28  openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
   29  cd ~/
   30  mkdir lxc-cert
   31  cd lxc-cert
   32  openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
   33  openssl pkcs12 -export -out cert.p12 -inkey key.pem -in cert.pem
   34  lxc config trust add ./cert.pem
   37  nano /etc/apache2/apache2.conf
   39  sudo cp cert.pem /etc/ssl/certs/
   40  sudo cp key.pem /etc/ssl/private/
   41  sudo chmod 0600 /etc/ssl/private/key.pem
   42  sudo a2enmod ssl
   43  sudo a2ensite default-ssl
   44  sudo nano /etc/apache2/sites-enabled/default-ssl
   45  sudo nano /etc/apache2/sites-enabled/default-ssl.conf
   46  sudo service apache2 restart
   50  sudo lxc config set core.https_allowed_methods "GET, POST, PUT, DELETE, OPTIONS"
   51  sudo lxc config set core.https_allowed_headers "Origin, X-Requested-With, Content-Type, Accept"
   52  sudo lxc config set core.https_allowed_credentials "true"
   53  sudo lxc config trust add /etc/ssl/certs/cert.pem
   54  sudo lxd restart
   55  sudo service lxd restart

lxd log sais:

ip=...:64143 lvl=warn msg="rejecting request from untrusted client" t=2017-02-10T00:18:32+0300

browser = firefox
cert.c12 imported

from lxd-webgui.

dobin avatar dobin commented on July 18, 2024

Can you try opening https://localhost:9000 with the browser, and accept the certificate warning? Imho this should solve this issue.

https://github.com/dobin/lxd-webgui#start

from lxd-webgui.

dobin avatar dobin commented on July 18, 2024

Fix would be to implement #22

from lxd-webgui.

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.