mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-27 01:15:34 +01:00
Compare commits
3 Commits
TOoSmOotH-
...
jertel/wip
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcad82c4d4 | ||
|
|
039e8db85f | ||
|
|
c1c568e94d |
@@ -181,7 +181,7 @@ http {
|
|||||||
ssl_prefer_server_ciphers on;
|
ssl_prefer_server_ciphers on;
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
|
||||||
location ~* (^/login/.*|^/js/.*|^/css/.*|^/images/.*) {
|
location ~* (^/login/.*|^/js/.*|^/css/.*|^/images/.*|^/pages/.*|^/docs/.*) {
|
||||||
proxy_pass http://{{ GLOBALS.manager }}:9822;
|
proxy_pass http://{{ GLOBALS.manager }}:9822;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout 90;
|
||||||
proxy_connect_timeout 90;
|
proxy_connect_timeout 90;
|
||||||
@@ -213,6 +213,9 @@ http {
|
|||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_cache off;
|
proxy_cache off;
|
||||||
proxy_request_buffering off;
|
proxy_request_buffering off;
|
||||||
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
|
add_header Pragma "no-cache";
|
||||||
|
add_header Expires "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/auth/.*?(login|oidc/callback) {
|
location ~ ^/auth/.*?(login|oidc/callback) {
|
||||||
@@ -385,10 +388,14 @@ http {
|
|||||||
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