mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-26 17:05:37 +01:00
Compare commits
2 Commits
TOoSmOotH-
...
jertel/wip
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
039e8db85f | ||
|
|
c1c568e94d |
@@ -383,12 +383,16 @@ http {
|
|||||||
|
|
||||||
location @error401 {
|
location @error401 {
|
||||||
if ($request_uri ~* (^/connect/.*|^/oauth2/.*)) {
|
if ($request_uri ~* (^/connect/.*|^/oauth2/.*)) {
|
||||||
return 401;
|
return 401;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request_uri ~* ^/(?!(^/api/.*))) {
|
if ($request_uri ~* ^/(?!(^/api/.*))) {
|
||||||
add_header Set-Cookie "AUTH_REDIRECT=$request_uri;Path=/;Max-Age=14400";
|
|
||||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request_uri ~* ^/(?!(api/|login|auth|oauth2|$))) {
|
||||||
|
add_header Set-Cookie "AUTH_REDIRECT=$request_uri;Path=/;Max-Age=14400";
|
||||||
|
}
|
||||||
return 302 /auth/self-service/login/browser;
|
return 302 /auth/self-service/login/browser;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,6 +69,8 @@ log_has_errors() {
|
|||||||
grep -vE "Running scope as unit" | \
|
grep -vE "Running scope as unit" | \
|
||||||
grep -vE "securityonion-resources/sigma/stable" | \
|
grep -vE "securityonion-resources/sigma/stable" | \
|
||||||
grep -vE "remove_failed_vm.sls" | \
|
grep -vE "remove_failed_vm.sls" | \
|
||||||
|
grep -vE "failed to copy: httpReadSeeker" | \
|
||||||
|
grep -vE "Error response from daemon: failed to resolve reference" | \
|
||||||
grep -vE "log-.*-pipeline_failed_attempts" &> "$error_log"
|
grep -vE "log-.*-pipeline_failed_attempts" &> "$error_log"
|
||||||
|
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user