https://github.com/goproxyio/goproxy.io
The goproxy.io website source code
https://github.com/goproxyio/goproxy.io
Last synced: 12 months ago
JSON representation
The goproxy.io website source code
- Host: GitHub
- URL: https://github.com/goproxyio/goproxy.io
- Owner: goproxyio
- License: mit
- Created: 2019-05-25T15:51:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-20T04:47:48.000Z (over 1 year ago)
- Last Synced: 2025-07-20T02:27:04.257Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://goproxy.io
- Size: 5.71 MB
- Stars: 18
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goproxy.io
goproxy.io official site
## Prerequisites
* Node: 16.x
* npm
* gatsby-cli
### Install
```sh
# nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
# Node.js and npm has been integrated.
nvm install 16.20.2
# gatsby-cli
npm i -g gatsby-cli
# project dependencies
cd goproxy.io
npm i
```
## Development
```sh
npm run develop
```
## Usage
* Write English document in the `content/docs` directory.
* Write Chinese document in the `content/zh/docs` directory.
## Build
```sh
npm run clean
npm run build
```
Then, all files are generated into the `public` directory.
## Deploy
Serve the `public` directory as root directory.
### Configure the nginx for cors
If your static files use a third domain, you need add the below code in the **`location`** section ([ref](https://enable-cors.org/)), or you need configure the cors in your cdn provider.
```
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' '*';
add_header 'Access-Control-Expose-Headers' '*';
}
```