-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from quix-labs/feature/security_addon
Add security configuration and error action configuration
- Loading branch information
Showing
9 changed files
with
632 additions
and
289 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ caddy | |
.idea | ||
out | ||
dist/ | ||
build/ | ||
build/ | ||
test-dataset/ |
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
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,16 @@ | ||
package CADDY_FILE_SERVER | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
) | ||
|
||
type AbortRequestError struct { | ||
Msg string | ||
} | ||
|
||
func (e *AbortRequestError) Error() string { | ||
return fmt.Sprintf("request aborted: %s", e.Msg) | ||
} | ||
|
||
var BypassRequestError = errors.New("bypass request") |
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.