File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 level = logging .INFO , format = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
99)
1010
11- app = FastAPI ()
11+ app = FastAPI (root_path = "/chat" )
1212
1313app .include_router (health .router )
1414app .include_router (chat .router )
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ services:
3737 - " 80:80"
3838 env_file :
3939 - ./nginx_service/.env
40+ depends_on :
41+ - pdf_extraction
42+ - pdf_processor_service
43+ - chat_service
4044
4145 redis :
4246 container_name : redis
Original file line number Diff line number Diff line change 11PDF_PROCESSOR_URL = http://pdf_processor_service:8000
2- PDF_PROCESSOR_URL = http://chat_service:8001
2+ PDF_EXTRACTOR_URL = http://pdf_extraction_service:8000
3+ CHAT_URL = http://chat_service:8000
Original file line number Diff line number Diff line change @@ -3,7 +3,14 @@ server {
33 server_name localhost;
44
55 location /processor/ {
6- proxy_pass ${PROCESSOR_URL };
6+ proxy_pass ${PDF_PROCESSOR_URL };
77 }
88
9+ location /extractor/ {
10+ proxy_pass ${PDF_EXTRACTOR_URL};
11+ }
12+
13+ location /chat/ {
14+ proxy_pass ${CHAT_URL};
15+ }
916}
Original file line number Diff line number Diff line change 88 format = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
99)
1010
11- app = FastAPI ()
11+ app = FastAPI (root_path = "/extractor" )
1212
1313app .include_router (health .router )
1414app .include_router (extractor .router )
You can’t perform that action at this time.
0 commit comments