File tree Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Expand file tree Collapse file tree 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ services:
25
25
volumes :
26
26
- termit-db-server:/opt/graphdb/home
27
27
termit-server :
28
- image : kbsscvut/termit:dev
28
+ image : kbsscvut/termit
29
29
depends_on :
30
30
- termit-db-server
31
31
environment :
@@ -44,15 +44,22 @@ services:
44
44
TERMIT_SERVER_SERVLET_CONTEXT-PATH : ${ROOT}/sluzby/server
45
45
TERMIT_FILE_STORAGE : /tmp/storage
46
46
TERMIT_TEXTANALYSIS_URL : http://annotace-server:8080/annotate?enableKeywordExtraction=true
47
+ TERMIT_VALIDATIONSERVICEURL : http://validation-service:8080/validate
47
48
TERMIT_JWT_SECRETKEY : ${JWT_SECRET_KEY}
48
49
volumes :
49
50
- termit-server:/tmp/storage
50
51
annotace-server :
51
52
image : ghcr.io/kbss-cvut/annotace/annotace-spark:latest
52
53
volumes :
53
54
- annotace-server:/tmp
55
+ validation-service :
56
+ image : ghcr.io/kbss-cvut/validation-service/validation-service:latest
57
+ depends_on :
58
+ - termit-db-server
59
+ environment :
60
+ VALIDATOR_REPOSITORYURL : http://termit-db-server:7200/repositories/termit
54
61
termit :
55
- image : kbsscvut/termit-ui:dev
62
+ image : kbsscvut/termit-ui
56
63
depends_on :
57
64
- termit-server
58
65
environment :
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ http {
26
26
}
27
27
28
28
location $ {ROOT}/sluzby/db-server / {
29
- proxy_pass http://termit-db-server:7200/;
29
+ proxy_pass http://termit-db-server:7200/;
30
30
}
31
31
32
32
location = $ {ROOT}/sluzby/server {
33
- return 302 ${ORIGIN}${ROOT}/sluzby/server/;
33
+ return 302 ${ORIGIN}${ROOT}/sluzby/server/;
34
34
}
35
35
36
36
location $ {ROOT}/sluzby/server / {
@@ -43,6 +43,20 @@ http {
43
43
proxy_set_header Connection $connection_upgrade ;
44
44
}
45
45
46
+ location = $ {ROOT}/sluzby/validace {
47
+ return 302 ${ORIGIN}${ROOT}/sluzby/validace/;
48
+ }
49
+
50
+ location $ {ROOT}/sluzby/validace / {
51
+ proxy_pass http://validation-service:8080/;
52
+ proxy_set_header X-Forwarded-Host $host ;
53
+ proxy_set_header X-Forwarded-Prefix ${ROOT}/sluzby/validace/;
54
+ proxy_set_header X-Forwarded-Port ${PORT};
55
+
56
+ proxy_http_version 1.1 ;
57
+ proxy_set_header "Connection" "" ;
58
+ }
59
+
46
60
location = $ {ROOT} {
47
61
return 302 ${ORIGIN}${ROOT}/;
48
62
}
You can’t perform that action at this time.
0 commit comments