merge branch feature/refresh-token

This commit is contained in:
vchikalkin 2024-01-16 13:13:25 +03:00
parent 49d5682869
commit 89bbe26e55
3 changed files with 6 additions and 2 deletions

1
.env
View File

@ -7,3 +7,4 @@ WEB_HOST=
APPLICATION=
AUTH_MODE=ldap
# AUTH_MODE=account
REFRESH_TOKEN=0

View File

@ -41,6 +41,7 @@ server {
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header refresh-token $refresh_token;
proxy_intercept_errors on;
}
@ -53,6 +54,7 @@ server {
}
location / {
set $refresh_token $REFRESH_TOKEN;
proxy_pass http://app;
proxy_http_version 1.1;
@ -61,7 +63,7 @@ server {
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
include /etc/nginx/include/auth.conf;
include /etc/nginx/include/auth.conf;
}

View File

@ -9,6 +9,7 @@ services:
environment:
- APPLICATION=${APPLICATION}
- AUTH_MODE=${AUTH_MODE}
- REFRESH_TOKEN=${REFRESH_TOKEN}
volumes:
- ./config/nginx.auth.conf:/etc/nginx/templates/default.conf.template
- ./config/include:/etc/nginx/include