Skip to content

Commit

Permalink
**
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolicvs committed Aug 20, 2020
1 parent d4dc912 commit 10950aa
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ services:
IN_SYLVA_GRANT_TYPE: "password"
IN_SYLVA_REALM: "in-sylva"
ports:
- 8081:8080
- 8081:8081
links:
- gatekeeper
- keycloak
Expand Down
4 changes: 3 additions & 1 deletion login/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,6 @@ EXPOSE 8080

WORKDIR /app/in-sylva.user.login/

CMD [ "pm2-runtime", "npm","--", "start" ]
CMD [ "pm2-runtime", "npm","--", "start" ]

# CMD npm run start
1 change: 1 addition & 0 deletions portal/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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_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
Expand Down
1 change: 1 addition & 0 deletions portal/.env_generic
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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_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
Expand Down
30 changes: 15 additions & 15 deletions search/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ server {
proxy_pass http://backend_search/;
}

location /login/_next/static/ {
autoindex on;
# location /login/_next/static/ {
# autoindex on;
# /app/in-sylva.user.login/.next/static/G-XKPGgjYNxek_SDdSj9a/pages
alias /app/in-sylva.user.login/.next/static;
}
# alias /app/in-sylva.user.login/.next/static;
#}

location /login/ {
proxy_pass http://login:8080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

sub_filter_once off;
proxy_set_header Accept-Encoding "";
}
# location /login/ {
# proxy_pass http://login:8080/;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;

# sub_filter_once off;
# proxy_set_header Accept-Encoding "";
#}


location /source-manager/ {
Expand Down
30 changes: 15 additions & 15 deletions search/nginx/nginx_generic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ server {
proxy_pass http://backend_search/;
}

location /login/_next/static/ {
autoindex on;
# location /login/_next/static/ {
# autoindex on;
# /app/in-sylva.user.login/.next/static/G-XKPGgjYNxek_SDdSj9a/pages
alias /app/in-sylva.user.login/.next/static;
}
# alias /app/in-sylva.user.login/.next/static;
#}

location /login/ {
proxy_pass http://login:8080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;

sub_filter_once off;
proxy_set_header Accept-Encoding "";
}
# location /login/ {
# proxy_pass http://login:8080/;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;

# sub_filter_once off;
# proxy_set_header Accept-Encoding "";
#}


location /source-manager/ {
Expand Down

0 comments on commit 10950aa

Please sign in to comment.