-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
registration: add admin email Caddyfile directive
- Loading branch information
Showing
10 changed files
with
65 additions
and
12 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 |
---|---|---|
|
@@ -81,10 +81,10 @@ module github.com/greenpau/caddy-security | |
go 1.16 | ||
require ( | ||
github.com/greenpau/go-authcrunch v1.0.14 | ||
github.com/greenpau/go-authcrunch v1.0.15 | ||
) | ||
replace github.com/greenpau/go-authcrunch v1.0.14 => /home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
replace github.com/greenpau/go-authcrunch v1.0.15 => /home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
``` | ||
|
||
Then, modify `Makefile` such that that replacement passes to `xcaddy` builder: | ||
|
@@ -93,7 +93,7 @@ Then, modify `Makefile` such that that replacement passes to `xcaddy` builder: | |
@mkdir -p ../xcaddy-$(PLUGIN_NAME) && cd ../xcaddy-$(PLUGIN_NAME) && \ | ||
xcaddy build $(CADDY_VERSION) --output ../$(PLUGIN_NAME)/bin/caddy \ | ||
--with github.com/greenpau/caddy-security@$(LATEST_GIT_COMMIT)=$(BUILD_DIR) \ | ||
--with github.com/greenpau/[email protected].14=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
--with github.com/greenpau/[email protected].15=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
``` | ||
|
||
Once all the necessary packages are installed, you should be ready to compile | ||
|
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ all: info | |
xcaddy build $(CADDY_VERSION) --output ../$(PLUGIN_NAME)/bin/caddy \ | ||
--with github.com/greenpau/caddy-security@$(LATEST_GIT_COMMIT)=$(BUILD_DIR) \ | ||
--with github.com/greenpau/[email protected] | ||
@#--with github.com/greenpau/[email protected].14=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
@#--with github.com/greenpau/[email protected].15=/home/greenpau/dev/go/src/github.com/greenpau/go-authcrunch | ||
@#bin/caddy run -config assets/config/Caddyfile | ||
@for f in `find ./assets -type f -name 'Caddyfile'`; do bin/caddy fmt -overwrite $$f; done | ||
|
||
|
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,24 @@ | ||
{ | ||
"version": "1.0.14", | ||
"policy": { | ||
"password": { | ||
"keep_versions": 10, | ||
"min_length": 8, | ||
"max_length": 128, | ||
"require_uppercase": false, | ||
"require_lowercase": false, | ||
"require_number": false, | ||
"require_non_alpha_numeric": false, | ||
"block_reuse": false, | ||
"block_password_change": false | ||
}, | ||
"user": { | ||
"min_length": 3, | ||
"max_length": 50, | ||
"allow_non_alpha_numeric": false, | ||
"allow_uppercase": false | ||
} | ||
}, | ||
"revision": 1, | ||
"last_modified": "2022-02-11T02:28:16.795785781Z" | ||
} |
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
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