-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Use pebble for integrated testing Bugs found during integ testing: + Use subjectAltName as commonName is actually deprecated + Prepare for asynchronous let's encrypt finalize order flow
- Loading branch information
Showing
26 changed files
with
504 additions
and
3,766 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
HTTP_PORT=8880 | ||
HTTPS_PORT=8843 | ||
STAT_PORT=8081 | ||
WHITELIST_HOSTS= | ||
BLACKLIST_HOSTS="bad.example,evil.example" | ||
BLACKLIST_REDIRECT="https://forwarddomain.net/blacklisted" | ||
NODE_ENV=test | ||
NODE_TLS_REJECT_UNAUTHORIZED=0 |
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,2 +1,6 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
go.mod eol=lf text=auto | ||
go.sum eol=lf text=auto | ||
package.json eol=lf text=auto | ||
*.lockb binary diff=lockb |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.22.1' | ||
- name: Install pebble | ||
run: go install github.com/letsencrypt/pebble/v2/cmd/[email protected] | ||
- name: Install dnsserver | ||
run: go install github.com/dlorch/dnsserver@latest | ||
- name: Install deps | ||
run: npm install | ||
- name: Test | ||
run: env PATH=${PATH}:`go env GOPATH`/bin npm test |
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,8 +1,7 @@ | ||
import "dotenv/config.js"; | ||
import {plainServer, secureServer} from "./index.js"; | ||
|
||
const port80 = parseInt(process.env.HTTP_PORT || "80"); | ||
const port443 = parseInt(process.env.HTTPS_PORT || "443"); | ||
|
||
const port80 = parseInt(process.env.HTTP_PORT || "8080"); | ||
const port443 = parseInt(process.env.HTTPS_PORT || "8443"); | ||
console.log("Forward Domain running with env", process.env.NODE_ENV); | ||
plainServer.listen(port80, () => console.log(`HTTP server start at port ${port80}`)); | ||
secureServer.listen(port443, () => console.log(`HTTPS server start at port ${port443}`)); |
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
Oops, something went wrong.