Skip to content

VaalaCat/vorker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vorker

Vorker is a simple self host cloudflare worker alternative which built with cloudflare's workerd.

Fearues and Issues are welcome!

Features

  • User authentication
  • API control
  • Multi worker routing
  • Woker CRUD Management
  • Web UI & Online Editor
  • Multi Node
  • HA support
  • Log
  • Metrics
  • Worker version control
  • Worker Debugging
  • Support KV storage

Screenshots

  • Admin Page

  • Worker Editor

  • Worker Config

  • Agent Status

  • Worker Execution

Usage

Docker

  1. Run by docker command or download the docker-compose.yml from repo and execute docker-compose up -d.

all envs defined in env.go, you can take a look at it for more details.

docker run -dit --name=vorker \
	-e WORKER_URL_SUFFIX=.example.com \
	-e COOKIE_DOMAIN=example.com \
	-e ENABLE_REGISTER=false \
	-e COOKIE_NAME=authorization \
	-e JWT_SECRET=xxxxxxx \
	-e AGENT_SECRET=xxxxxxx \
	-p 8080:8080 \
	-p 8888:8888 \
	-p 18080:18080 \
	-v /tmp/workerd:/workerd \
	vaalacat/vorker:latest

# this is a example, you can change the env to fit your need
# for this example, you can visit http://localhost:8888/admin to access the web ui
# and the worker URL will be: SCHEME://WORKER_NAME.example.com
  1. test your workerd, if your vorker is running on localhost, you can use curl to test it.

visit http://localhost:8888/admin to control your worker.

curl localhost:8080 -H "Host: workername" # replace workername with your worker name
  1. enjoy your untimate self hosted worker!