Skip to content

Commit

Permalink
Merge pull request #5 from harness/sean/logout-redirect
Browse files Browse the repository at this point in the history
[PL-21043]: redirect logout path to ng-auth-ui
  • Loading branch information
guna-harness authored Dec 3, 2021
2 parents 06d1339 + d9f9b1f commit aff9ee5
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docker-compose/harness/config/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ http {
proxy_pass http://ng_auth_ui_service/;
}

location /auth/ {
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 2G;

proxy_pass http://ng_auth_ui_service/;
}

location /storage/ {
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
Expand Down
9 changes: 7 additions & 2 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This page contains the instructions necessary to run Harness CE using Helm on yo

## Hardware requirements
* 4 CPUs or more
* 12GB of free memory
* 4GB of free memory
* 20GB of free disk space
* Internet connection

Expand All @@ -21,7 +21,12 @@ This page contains the instructions necessary to run Harness CE using Helm on yo
```
1) Start minikube
```shell
minikube start --memory 8g --cpus 4
minikube start --memory 4g --cpus 4
```
1) Set the `PUBLIC_IP` configuration parameter, this is the IP address of your machine
In values.yaml update the `public_ip` parameter, example,
```shell
sed -i '' -e 's/public_ip:.*/public_ip: "192.168.1.1"/' harness/values.yaml
```
1) Start Harness
```shell
Expand Down
10 changes: 10 additions & 0 deletions helm/harness/templates/proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ data:
proxy_pass http://ng_auth_ui_service/;
}
location /auth/ {
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 2G;
proxy_pass http://ng_auth_ui_service/;
}
location /storage/ {
# WebSocket support (nginx 1.4)
proxy_http_version 1.1;
Expand Down

0 comments on commit aff9ee5

Please sign in to comment.