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

Possible to add authentication on web interface (port 3000)? #9

Open
aurrak opened this issue Jul 13, 2021 · 2 comments
Open

Possible to add authentication on web interface (port 3000)? #9

aurrak opened this issue Jul 13, 2021 · 2 comments

Comments

@aurrak
Copy link

aurrak commented Jul 13, 2021

Is it possible to add password protection to the node.js web interface? Would be nice have some sort of protection against malicious tampering on the boot.cfg or the menu entries.

@worldowner
Copy link

This is a good point. Are there any plans to implement this?

@turegano-equinix
Copy link

You can put a nginx to protect the port

docker-compose.yaml

---
version: "2.1"
services:
  netbootxyz:
    image: ghcr.io/netbootxyz/netbootxyz
    container_name: netbootxyz
    environment:
      - MENU_VERSION=2.0.47 # optional
    volumes:
      - /netboot.xyz/config:/config # optional
      - /netboot.xyz/assets:/assets # optional
    ports:
      #- 3000:3000
      - 69:69/udp
      - 8080:80 #optional
    restart: unless-stopped
  nginx:
    image: nginx:latest
    container_name: nginx
    volumes:
      - /netboot.xyz/config/nginx/reverse_proxy.conf:/etc/nginx/conf.d/default.conf
      - /netboot.xyz/config/nginx/.htpassw:/etc/nginx/.htpasswd
    ports:
      - 3000:3000
    links:
      - netbootxyz

And the reverse_proxy.conf

server {
  listen 3000;
  server_name netbootxyz;

  location / {
   auth_basic "Restricted";
   auth_basic_user_file  /etc/nginx/.htpasswd;
    proxy_pass    http://netbootxyz:3000/;

  }
}

To generate the .htpassw https://www.web2generators.com/apache-tools/htpasswd-generator

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