Giter VIP home page Giter VIP logo

vaalacat / vorker Goto Github PK

View Code? Open in Web Editor NEW
97.0 3.0 3.0 22.51 MB

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

Home Page: https://vaala.cat/2023/06/03/Vorker%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0-%E8%87%AA%E5%BB%BA%E7%9A%84%E4%BA%91%E5%87%BD%E6%95%B0%E5%B9%B3%E5%8F%B0/

Dockerfile 1.84% Go 67.88% JavaScript 3.80% TypeScript 26.39% CSS 0.09%
serverless cloudflare-workers cloudfunctions workerd self-hosted

vorker's Introduction

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!

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.