Skip to content

HPABio/nebulaContainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nebula Lighthouse for Coolify

This repository deploys a Nebula Lighthouse. On the first run, it automatically generates all necessary certificates and keys.

Deployment with Coolify

  1. Create a new Service/Project in Coolify.
  2. Select "From GitHub" and point it to this repository.
  3. Ensure the "Build Pack" is set to Docker Compose or Dockerfile.
  4. Important: Coolify must allow cap_add: NET_ADMIN. Usually standard Docker deployments allow this, but if it fails, check the container capabilities settings.
  5. Deploy.

Getting Your Keys

Once deployed, the entrypoint.sh script will check if keys exist. If not, it generates them and prints them to the container logs.

  1. Go to your deployment logs in Coolify.
  2. Scroll to the start of the log.
  3. You will see sections like --- LAPTOP CERT ---, --- LAPTOP KEY ---, etc.
  4. Copy these contents to files on your respective devices.

Client Configuration (Laptop/Home)

File: config.yaml

pki:
  ca: /path/to/ca.crt
  cert: /path/to/laptop.crt  # or home.crt
  key: /path/to/laptop.key   # or home.key

static_host_map:
  "192.168.100.1": ["nebula.biocentra.eu:4242"]

lighthouse:
  am_lighthouse: false
  hosts:
    - "192.168.100.1"

listen:
  host: 0.0.0.0
  port: 0  # 0 means random port for clients

punchy:
  punch: true

tun:
  disabled: false
  dev: nebula1

firewall:
  outbound:
    - port: any
      proto: any
      host: any
  inbound:
    - port: any
      proto: any
      host: any

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors