-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: expose more config options to ngxway.conf
- Loading branch information
Showing
7 changed files
with
59 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
wget https://dl.google.com/go/go1.15.linux-amd64.tar.gz | ||
tar -C /usr/local -xzf go1.15.linux-amd64.tar.gz | ||
# Check go is installed. | ||
if ! command -v go &> /dev/null; then | ||
wget https://dl.google.com/go/go1.15.linux-amd64.tar.gz | ||
tar -C /usr/local -xzf go1.15.linux-amd64.tar.gz | ||
rm -f go1.15.linux-amd64.tar.gz | ||
fi | ||
|
||
export PATH=$PATH:/usr/local/go/bin | ||
go env -w GO111MODULE=on | ||
rm -f go1.15.linux-amd64.tar.gz | ||
|
||
go build -o goserver main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
module goserver | ||
|
||
go 1.13 | ||
|
||
require go.uber.org/automaxprocs v1.5.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!DOCTYPE html><html><head><meta content="text/html;charset=utf-8" http-equiv="Content-Type"><meta content="utf-8" http-equiv="encoding"><title>Welcome to OpenResty!</title><style>body{width: 35em;margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }</style></head><body><h1>Welcome to ngxway!</h1><p>When you see this page, the ngxway is successfully installed and working. For online documentation and support please refer to our <a href="https://github.com/WGrape/ngxway">site</a>.</p><p><em>Thank you very much.</em></p> | ||
<!DOCTYPE html><html><head><meta content="text/html;charset=utf-8" http-equiv="Content-Type"><meta content="utf-8" http-equiv="encoding"><title>Welcome to ngxway!</title><style>body{width: 35em;margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }</style></head><body><h1>Welcome to ngxway!</h1><p>When you see this page, the ngxway is successfully installed and working. For online documentation and support please refer to our <a href="https://github.com/WGrape/ngxway">site</a>.</p><p><em>Thank you very much.</em></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters