mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #312 from Security-Onion-Solutions/hotfix/auth-timeout
[fix] Various timeout fixes for so-auth
This commit is contained in:
@@ -15,6 +15,7 @@ so-auth-api:
|
|||||||
- name: so-auth-api
|
- name: so-auth-api
|
||||||
- environment:
|
- environment:
|
||||||
- BASE_PATH: "/so-auth/api"
|
- BASE_PATH: "/so-auth/api"
|
||||||
|
- AUTH_TOKEN_TIMEOUT: 32400
|
||||||
- binds:
|
- binds:
|
||||||
- /opt/so/conf/auth/api:/data
|
- /opt/so/conf/auth/api:/data
|
||||||
- port_bindings:
|
- port_bindings:
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ http {
|
|||||||
error_page 401 = @error401;
|
error_page 401 = @error401;
|
||||||
|
|
||||||
location @error401 {
|
location @error401 {
|
||||||
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/";
|
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/;Max-Age=60000";
|
||||||
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ http {
|
|||||||
error_page 401 = @error401;
|
error_page 401 = @error401;
|
||||||
|
|
||||||
location @error401 {
|
location @error401 {
|
||||||
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/";
|
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/;Max-Age=60000";
|
||||||
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ http {
|
|||||||
error_page 401 = @error401;
|
error_page 401 = @error401;
|
||||||
|
|
||||||
location @error401 {
|
location @error401 {
|
||||||
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/";
|
add_header Set-Cookie "NSREDIRECT=http://{{ masterip }}$request_uri;Domain={{ masterip }};Path=/;Max-Age=60000";
|
||||||
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
return 302 http://{{ masterip }}/so-auth/loginpage/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user