Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
- Loading branch information
1 parent
4cbfb06
commit 14c4f5a
Showing
9 changed files
with
105 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
# {$debug} | ||
# default_sni {$SNI} | ||
admin off | ||
# local_certs | ||
auto_https off | ||
} | ||
|
||
# Import all sites config | ||
import sites.d/*.conf |
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,44 @@ | ||
http://:{$PORT} { | ||
@proxy { | ||
header Proxy-Authorization Basic* | ||
} | ||
|
||
@noproxy { | ||
not { | ||
header Proxy-Authorization Basic* | ||
} | ||
} | ||
|
||
request_header @proxy Authorization {http.request.header.Proxy-Authorization} | ||
request_header @proxy -Proxy-Authorization | ||
|
||
log { | ||
output stdout | ||
format json | ||
level {$LOG_LEVEL} | ||
} | ||
|
||
header { | ||
X-Xss-Protection "1; mode=block" | ||
X-Content-Type-Options "nosniff" | ||
X-Frame-Options "DENY" | ||
Referrer-Policy "strict-origin-when-cross-origin" | ||
} | ||
|
||
reverse_proxy @proxy http://127.0.0.1:{$PORT} | ||
|
||
basicauth @noproxy bcrypt "{$REALM}" { | ||
{$USERNAME} {$PASSWORD} | ||
} | ||
|
||
reverse_proxy @noproxy http://127.0.0.1:3142 { | ||
# active health checking | ||
# XXX health does not seem to work /archive?healthcheck=internal | ||
health_path / | ||
health_port 3142 | ||
health_interval 60s | ||
health_timeout 5s | ||
health_status 200 | ||
health_status 404 | ||
} | ||
} |
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