Skip to content

Commit

Permalink
Allow user to specify target url
Browse files Browse the repository at this point in the history
  • Loading branch information
PhongT16 committed Aug 23, 2024
1 parent 900ffbc commit f74f094
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CILogon/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ http {
ngx.log(ngx.ERR, "Authentication successful, session created")
}

proxy_pass https://wiki.ncsa.illinois.edu;
proxy_pass ${TARGET_URL};
proxy_set_header Host wiki.ncsa.illinois.edu;
proxy_set_header Authorization "Bearer ${PAT}"; # Your PAT
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ proxied access to protected wiki

## Run with Docker
```
docker run --name wiki-proxy -p 80:80 -e CLIENT_ID=<CLIENT_ID> -e CLIENT_SECRET=<CLIENT_SECRET> -e PAT=<PAT> <IMAGE>
docker run --name wiki-proxy -p 80:80 -e CLIENT_ID=<CLIENT_ID> -e CLIENT_SECRET=<CLIENT_SECRET> -e PAT=<PAT> -e TARGET_URL=<URL> <IMAGE>
```

## Required packages
Expand Down

0 comments on commit f74f094

Please sign in to comment.