Giter VIP home page Giter VIP logo

Comments (9)

Lombra avatar Lombra commented on July 28, 2024

I made a few changes in order to get it working on Debian 10.

Install Node 12 instead of 13. (which is unsupported) 12 is long term supported. Did not try 14.

curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -

Add --unsafe-perm to fix Node modules permission error.

sudo npm install --unsafe-perm > /dev/null && sudo npm install @angular/cli > /dev/null

Install pip modules using sudo and pip3.

sudo pip3 install -r requirements.txt
sudo pip3 install uvicorn

Run uvicorn using sudo. By now you need to have set the admin username and password environment variables. For my initial test I just set them when starting the server.

sudo ADMIN_USERNAME=admin ADMIN_PASSWORD=admin uvicorn main:app --host=0.0.0.0
sudo uvicorn main:app --host=0.0.0.0

from wg-manager.

perara avatar perara commented on July 28, 2024

Thanks! I'll update the documentation !

from wg-manager.

pw44 avatar pw44 commented on July 28, 2024

For bare metal installation, may i ask for some help?

how to make use of a server digital certficate?
how to start by boot time?
how to change login and password, i.e, make use of linux authentication?

Thx!

from wg-manager.

outbackdingo avatar outbackdingo commented on July 28, 2024

Id also like to know the answers to below

how to make use of a server digital certficate?
how to start by boot time?
how to change login and password, i.e, make use of linux authentication?

from wg-manager.

perara avatar perara commented on July 28, 2024

from wg-manager.

outbackdingo avatar outbackdingo commented on July 28, 2024
  1. Thanks ill follow up on it
  2. yeah dont quite follow the gunicorn stuff, i did mine based on bare metal without the virtual environment, so tried to fiogure out a superviser systemd file and failed miserably.
  3. the only application ove ever seen with a non-changeable easy to use login, anyone who finds the site can login and create a vpn tunnel.. this is what i call a security risk. be very nice to have it resolved.

from wg-manager.

perara avatar perara commented on July 28, 2024

from wg-manager.

Lombra avatar Lombra commented on July 28, 2024

Here's what I did for a unit: (Debian)

/etc/systemd/system/wg-manager.service

[Unit]
Description=wg-manager
After=network.target

[Service]
User=root
WorkingDirectory=/opt/wg-manager/wg_dashboard_backend
ExecStart=uvicorn main:app --host=0.0.0.0 --port=80
Restart=always

[Install]
WantedBy=multi-user.target

And then an override file containing the environment variables.
/etc/systemd/system/wg-manager.service.d/override.conf

[Service]
Environment=ADMIN_USERNAME=myusername
Environment=ADMIN_PASSWORD=mypassword

from wg-manager.

outbackdingo avatar outbackdingo commented on July 28, 2024

from wg-manager.

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.