vroomy

所属分类:虚拟/增强现实-VR/AR
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2023-08-03 19:48:50
上 传 者sh-1993
说明:  Vroomy是一个基于插件的服务器,
(Vroomy is a plugin-based server,)

文件列表:
.all-contributorsrc (981, 2023-08-03)
CODESIGN.md (1286, 2023-08-03)
LICENCE (1068, 2023-08-03)
baseplugin.go (315, 2023-08-03)
bin/ (0, 2023-08-03)
bin/codesign (34, 2023-08-03)
bin/init (282, 2023-08-03)
bin/install (80, 2023-08-03)
bin/setcap (50, 2023-08-03)
config.example.toml (252, 2023-08-03)
config.go (3136, 2023-08-03)
dependencies.go (3034, 2023-08-03)
dependencies_test.go (6785, 2023-08-03)
environment.go (343, 2023-08-03)
flag.go (183, 2023-08-03)
go.mod (556, 2023-08-03)
go.sum (5224, 2023-08-03)
includeConfig.go (1211, 2023-08-03)
plugin.go (138, 2023-08-03)
plugins.go (2606, 2023-08-03)
plugins_test.go (15, 2023-08-03)
response.go (733, 2023-08-03)
route.go (670, 2023-08-03)
routegroup.go (590, 2023-08-03)
utils.go (2505, 2023-08-03)
utils_test.go (1224, 2023-08-03)
vroomy-billboard.png (107838, 2023-08-03)
vroomy.go (12330, 2023-08-03)

# Vroomy [![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) ![billboard](https://github.com/vroomy/vroomy/blob/main/vroomy-billboard.png?raw=true "Vroomy billboard") Vroomy is a plugin-based server. Vroomy can be used for anything, from a static file server to a full-blown back-end service! ## Installation Installing by compilation is very straight forward. The following dependencies are required: - Go - GCC ### Fresh Install If you need to install vroomy use this method! (This installs vroomy, vpm, and all of their dependencies) ```bash curl -s https://raw.githubusercontent.com/vroomy/vroomy/main/bin/init | bash -s ``` ### Self Upgrade If you already have vroomy installed, it can upgrade itself! (NOTE: this will attempt to self-sign vroomy on osx and support setcap for selinux. For more info, check the directions during install process) ```bash vroomy upgrade && vpm upgrade ``` ## Usage ### Test vroomy (run without http listen) ```bash # Set custom config location (remember to revert if desired) vroomy test ``` ### Start (with default config) ```bash # With default config (./config.toml) vroomy ``` ### Start with custom config ```bash # Set custom config location (remember to revert if desired) export VROOMY_CONFIG="custom.toml" vroomy ``` ### Update plugins ```bash vpm update ``` ### Update plugins with custom config ```bash vpm update -config custom.toml ``` ### Update plugins with branch/channel ```bash vpm update -b staging ``` ### Update filtered plugins ```bash vpm update plugin1 plugin2 ``` ### Update specific plugin at specific version ```bash vpm update plugin1 -b v0.1.0 ``` ## Example configuration ```toml port = 8080 tlsPort = 10443 tlsDir = "./tls" [[route]] httpPath = "/" target = "./public_html/index.html" [[route]] httpPath = "/js/*" target = "./public_html/js" [[route]] httpPath = "/css/*" target = "./public_html/css" ``` *Note: Please see config.example.toml for a more in depth example* ### Performance ```bash # nginx $ wrk -c60 -d20s https://josh.usehatchapp.com Running 20s test @ https://josh.usehatchapp.com 2 threads and 60 connections Thread Stats Avg Stdev Max +/- Stdev Latency 17.66ms 1.59ms 30.31ms 88.20% Req/Sec 1.68k 102.72 1.91k 85.43% 66500 requests in 20.01s, 7.44GB read Requests/sec: 3323.69 Transfer/sec: 380.91MB # vroomy $ wrk -c60 -d20s https://josh.usehatchapp.com Running 20s test @ https://josh.usehatchapp.com 2 threads and 60 connections Thread Stats Avg Stdev Max +/- Stdev Latency 14.28ms 9.45ms 98.77ms 73.79% Req/Sec 2.17k 304.46 3.03k 76.52% 86013 requests in 20.01s, 9.62GB read Requests/sec: 4297.88 Transfer/sec: 492.22MB ``` ## Flags ### [-dataDir -d] :: Initializes backends in provided directory. Overrides value set in config and default values. Ignored when testing in favor of dir "testData". Use `vroomy -d ` ## Contributors Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Josh


Derek Halman


Matt Stay

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

近期下载者

相关文件


收藏者