Fix nginx config and oauth.yml

This commit is contained in:
Timofey Boyko 2023-10-19 18:08:18 +03:00
parent d8eff9bdb8
commit d4efd04825
2 changed files with 6 additions and 16 deletions

View File

@ -269,22 +269,12 @@ server {
location ~* /migration {
proxy_pass http://127.0.0.1:5034;
}
location ~* /(clients|scopes) {
proxy_pass http://127.0.0.1:9090;
}
}
location /api/clients {
proxy_pass http://127.0.0.1:9090;
proxy_set_header X-API-Version 1;
proxy_set_header X-Tenant 1;
}
location /api/scopes {
proxy_pass http://127.0.0.1:9090;
proxy_set_header X-API-Version 1;
proxy_set_header X-Tenant 1;
}
location /oauth2 {
proxy_pass http://127.0.0.1:8080;
}

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
onlyoffice-oauth-authorization:
build:
context: ../../../common/ASC.OAuth
context: ../../../server/common/ASC.OAuth
dockerfile: ${OAUTH_AUTHORIZATION_DOCKERFILE}
container_name: ${OAUTH_AUTHORIZATION_CONTAINER_NAME}
restart: always
@ -22,7 +22,7 @@ services:
DOCSPACE_ADDRESS: ${DOCSPACE_ADDRESS}
onlyoffice-oauth-api:
build:
context: ../../../common/ASC.OAuth
context: ../../../server/common/ASC.OAuth
dockerfile: ${OAUTH_API_DOCKERFILE}
container_name: ${OAUTH_API_CONTAINER_NAME}
ports: