Compare commits
2 Commits
main
...
feature/re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6ea0cb49d | ||
|
|
6ea46a1165 |
1
.env
1
.env
@ -7,3 +7,4 @@ WEB_HOST=
|
|||||||
APPLICATION=
|
APPLICATION=
|
||||||
AUTH_MODE=ldap
|
AUTH_MODE=ldap
|
||||||
# AUTH_MODE=account
|
# AUTH_MODE=account
|
||||||
|
REFRESH_TOKEN=0
|
||||||
@ -41,6 +41,7 @@ server {
|
|||||||
|
|
||||||
proxy_pass_request_body off;
|
proxy_pass_request_body off;
|
||||||
proxy_set_header Content-Length "";
|
proxy_set_header Content-Length "";
|
||||||
|
proxy_set_header refresh-token $refresh_token;
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -53,6 +54,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
set $refresh_token $REFRESH_TOKEN;
|
||||||
proxy_pass http://app;
|
proxy_pass http://app;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|||||||
@ -9,6 +9,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- APPLICATION=${APPLICATION}
|
- APPLICATION=${APPLICATION}
|
||||||
- AUTH_MODE=${AUTH_MODE}
|
- AUTH_MODE=${AUTH_MODE}
|
||||||
|
- REFRESH_TOKEN=${REFRESH_TOKEN}
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/nginx.auth.conf:/etc/nginx/templates/default.conf.template
|
- ./config/nginx.auth.conf:/etc/nginx/templates/default.conf.template
|
||||||
- ./config/include:/etc/nginx/include
|
- ./config/include:/etc/nginx/include
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user