HttpProxy

command module
v0.0.0-...-5c2aece Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

Minecraft DynmapやBluemapに対応したプロキシ

MinecrafのプラグインであるDynmapやBluemapは相対パスを使用しており、

Nginxなどでリバースプロキシをする際に

パス単位にする(example.com/mapなど)のが非常にめんどくさい。

そのめんどくさい工程を自動化したhttpプロキシ

listen: 127.0.0.1:8080 -> 起動アドレスとポート
location: 
    example: -> 名前(適当可) 
        path: /sa -> パス
        proxy_pass: http://127.0.0.1:3000 -> バックエンドのアドレス
コンフィグは自動生成されます。

使用方法

go download
go build -o httpproxy
chmod +x httpproxy
./httpproxy

コンフィグの生成・設置位置を変えたい場合は

./httpproxy -c /home/shiro/configs/httpproxy.yml

停止する際は、^Cもしくはコンソールにstopと入力すると停止します。

専用のPterodactylEggもあるよ! http-proxy-pterodactyl

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL