Skip to content

Commit

Permalink
Merge branch 'master' of forgemia.inra.fr:in-sylva-development/in-syl…
Browse files Browse the repository at this point in the history
…va.infrastructure
  • Loading branch information
Ozcan Aytac; Insylva project committed Aug 3, 2020
2 parents 7299b87 + fb8134e commit ec1ca77
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Usage(){
exit
}

while [[ $# != 0 ]];do
while [ $# != 0 ];do
opt="$1"
case $opt in
-k)
Expand Down
11 changes: 7 additions & 4 deletions data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,18 @@ CREATE table IF NOT EXISTS roles_users (
);

CREATE table IF NOT EXISTS user_search_his(
id serial not null,
user_id int not null references users(id),

PRIMARY KEY (id, user_id),
id serial primary key,
kc_id varchar(100) NOT NULL,

query text,
name varchar(50),
ui_structure text,
description text,

CONSTRAINT roles_users_kc_id_fkey FOREIGN KEY (kc_id)
REFERENCES users(kc_id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION,

createdAt timestamp NOT NULL DEFAULT NOW(),
updatedAt timestamp
);
Expand Down
5 changes: 3 additions & 2 deletions search/.env_generic
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ REACT_APP_IN_SYLVA_GATEKEEPER_HOST=/gatekeeper
REACT_APP_IN_SYLVA_SOURCE_MANAGER_HOST=/source-manager
REACT_APP_IN_SYLVA_KEYCLOAK_HOST=/keycloak
REACT_APP_IN_SYLVA_SEARCH_HOST=/search-api
REACT_APP_IN_SYLVA_LOGIN_HOST=/login
REACT_APP_IN_SYLVA_LOGIN_HOST=http://localhost:8081
REACT_APP_IN_SYLVA_CLIENT_ID=in-sylva.user.app
REACT_APP_IN_SYLVA_GRANT_TYPE=password
REACT_APP_IN_SYLVA_REALM=in-sylva
REACT_APP_PORT=3001
REACT_APP_PORT=3001
REACT_KEYCLOAK_TOKEN_VALIDITY=60
2 changes: 1 addition & 1 deletion search/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ server {

}

location /keycloak/auth/ {
location /keycloak/auth/ {
proxy_pass http://backend_keycloak/keycloak/auth/;
}

Expand Down
2 changes: 1 addition & 1 deletion search/nginx/nginx_generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ server {

}

location /keycloak/auth/ {
location /keycloak/auth/ {
proxy_pass http://backend_keycloak/keycloak/auth/;
}

Expand Down

0 comments on commit ec1ca77

Please sign in to comment.