azuvotifier
一个带有各种增强功能的 NuVotifier 分支,例如 Redis 转发以及对更多平台的支持。
来自原始 README:
NuVotifier 是使用原版 Votifier 项目的安全替代方案。
NuVotifier 可以取代 Votifier —— 任何支持
Votifier 的投票监听器也将支持 NuVotifier。
有用资源
支持的平台
azuvotifier 目前支持以下平台:
- CraftBukkit、Spigot、Paper、Pufferfish 或 Purpur (1.8.8+)
- 旧版本可能也能工作,但不提供技术支持。
- 没有重大破坏性更改的任何分支也应能正常工作。
- Folia (1.21.5+)
- Fabric (1.21.10)
- Sponge 11 (1.20+)
- BungeeCord/Waterfall
- Velocity
它还可以使用 redis 和 proxy 转发方法作为独立应用程序运行。
运行方式
你可以直接从 GitHub 或 Modrinth 获取最新版本。
然后,按照你的服务器软件或独立版本的说明进行操作:
Bukkit, Folia, Sponge, BungeeCord 和 Velocity
将下载的 JAR 拖入 plugins/ 文件夹。你应该下载文件名中包含你服务器软件的 JAR。
如果你操作正确,它应该开箱即用。
Fabric
将下载的 JAR 拖入 mods/ 文件夹。你还需要下载并安装
Fabric API。
独立版
打开终端,进入之前下载的 JAR 所在的目录,然后像这样运行它:
$ java -Xms512M -Xmx512M -jar azuvotifier-standalone.jar
你也可以使用命令行参数来配置某些设置,例如主机名:
$ java -Xms512M -Xmx512M -jar azuvotifier-standalone.jar --host 127.0.0.1 --config /etc/nuvotifier/
要获取完整的选项列表,请运行:
$ java -jar azuvotifier-standalone.jar --help
使用 Docker 运行独立版
Docker Hub 上提供了独立版的 Docker 镜像。要拉取它,请运行:
$ docker pull azurejelly/standalone-nuvotifier:latest # 用于最新的稳定版本
$ docker pull azurejelly/standalone-nuvotifier:unstable # 用于 master 上的最新提交
然后,你可以使用如下命令运行该镜像:
$ docker run -p 8192:8192 \
-v /etc/nuvotifier:/app/config \
--restart unless-stopped \
--name nuvotifier \
azurejelly/standalone-nuvotifier:latest \
--port 8192
这将:
- 在宿主机上暴露端口 8192;
- 使用 socket 挂载将
/etc/nuvotifier(宿主机)映射到 /app/config(容器);
- 除非手动停止,否则自动重启容器;
- 将容器命名为
nuvotifier;
- 使用
azurejelly/standalone-nuvotifier:latest 镜像;
- 并将
--port 8192 作为命令行参数传递给 NuVotifier。
- 这不是必需的,因为
8192/tcp 已经是默认端口,但这有助于展示你可以传递诸如 --port 或 --config 之类的参数。
如果你想使用 Docker Compose,仓库中提供了一个示例 docker-compose.yml 文件。
许可证
azuvotifier 采用 GNU GPLv3 许可证。本项目的许可证可查看 此处。
azuvotifier
A fork of NuVotifier with various enhancements, such as Redis forwarding and support for additional platforms.
From the original README:
NuVotifier is a secure alternative to using the original Votifier project.
NuVotifier will work in place of Votifier - any vote listener that supports
Votifier will also support NuVotifier.
Useful resources
Supported platforms
azuvotifier is currently supported on the following platforms:
- CraftBukkit, Spigot, Paper, Pufferfish or Purpur (1.8.8+)
- Older versions might work but no support will be provided.
- Any fork without significant breaking changes should also work.
- Folia (1.21.5+)
- Fabric (1.21.10)
- Sponge 11 (1.20+)
- BungeeCord/Waterfall
- Velocity
It can also run as a standalone application using the redis and proxy forwarding methods.
Running
You can get the latest release directly from GitHub or Modrinth.
Then, follow the instructions for your server software or the standalone version:
Bukkit, Folia, Sponge, BungeeCord and Velocity
Drag and drop the downloaded JAR into your plugins/ folder. You should've downloaded the JAR that has your server software in its name.
If you've done everything right, it should work out of the box.
Fabric
Drag and drop the downloaded JAR into your mods/ folder. You'll also need to download and install
Fabric API.
Standalone
Open up the terminal, go into the directory the previously downloaded JAR is at, and then run it like this:
$ java -Xms512M -Xmx512M -jar azuvotifier-standalone.jar
You can also use command line arguments to configure some settings, such as the hostname:
$ java -Xms512M -Xmx512M -jar azuvotifier-standalone.jar --host 127.0.0.1 --config /etc/nuvotifier/
To get a full list of options, run:
$ java -jar azuvotifier-standalone.jar --help
Standalone with Docker
A Docker image for the standalone version is available at Docker Hub. To pull it, run:
$ docker pull azurejelly/standalone-nuvotifier:latest # for the latest stable release
$ docker pull azurejelly/standalone-nuvotifier:unstable # for the latest commit on master
You can then run the image using a command like:
$ docker run -p 8192:8192 \
-v /etc/nuvotifier:/app/config \
--restart unless-stopped \
--name nuvotifier \
azurejelly/standalone-nuvotifier:latest \
--port 8192
This will:
- Expose port 8192 on the host machine;
- Map
/etc/nuvotifier (host) to /app/config (container) using socket mounts;
- Restart the container automatically unless stopped;
- Name the container
nuvotifier;
- Use the
azurejelly/standalone-nuvotifier:latest image;
- And pass
--port 8192 as a command line argument to NuVotifier.
- Not required as
8192/tcp is already the default port, but helps to show that you can pass arguments such as --port or --config.
If you want to use Docker Compose, an example docker-compose.yml file is available on the repository.
License
azuvotifier is GNU GPLv3 licensed. This project's license can be viewed here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧