mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-15 06:43:35 +01:00
1.3 KiB
1.3 KiB
Getting started with go-proxy (binary)
Setup
-
Install
bash,makeandwgetif not already -
Run setup script
To specitfy a version (optional)
export VERSION=latest # will be resolved into real version number export VERSION=<version>If you don't need web config editor
export SETUP_CODEMIRROR=0Setup
wget -qO- https://6uo.me/go-proxy-setup-binary | sudo bashWhat it does:
- Download source file and binary into /opt/go-proxy/$VERSION
- Setup
config.ymlandproviders.yml - Setup
template/codemirrorwhich is a dependency for web config editor - Create a systemd service (if available) in
/etc/systemd/system/go-proxy.service - Enable and start
go-proxyservice
-
Start editing config files in
http://<ip>:8080 -
Check logs / status with
systemctl status go-proxy
Setup (alternative method)
-
Download the latest release and extract somewhere
-
Run
make setupand (optional)make setup-codemirror -
Enable HTTPS (optional)
-
To use autocert feature
complete
autocertinconfig/config.yml -
To use existing certificate
Prepare your wildcard (
*.y.z) SSL cert incerts/- cert / chain / fullchain:
certs/cert.crt - private key:
certs/priv.key
- cert / chain / fullchain:
-
-
Run the binary
bin/go-proxy