ChatGPT-V2

command module
v0.0.0-...-90f7731 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

README

ChatGPT Proxy Server

Building

  • Install Go
  • git clone https://github.com/acheong08/ChatGPT-Proxy-V1
  • cd ChatGPT-Proxy-V1
  • go build

The output should be a binary ChatGPT-Proxy-V1

Running

To run the binary, simply execute it with ./ChatGPT-Proxy-V1

Deployment

There are multiple ways to deploy this proxy: fly.io, docker, or simply running it on a server.

fly.io
  • Install flyctl
  • Login to flyctl with flyctl auth login
  • flyctl apps create and enter the appropriate details
  • flyctl deploy --remote-only to deploy the app to fly.io
Docker
  • Install Docker
  • Build the docker image with docker build -t chatgpt-proxy-v1 .
  • Remember to build the binary first
Running on a server
  • Just run the binary on a server of the same architecture as the machine you built it on
Configuration

The only configuration is the port to run the proxy on. This can be set with the PORT environment variable. The default port is 8080.

You can use nginx to reverse proxy the port to a domain and/or Cloudflare to proxy the port to a domain.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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