Skip to content

ncsa/wiki-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wiki-proxy

proxied access to protected wiki

Required packages

Recommended packages

Setup CILogon Client

  • Confluence Guide
  • The standard callback URL should be something like https://<your-domain>/redirect_uri

Commands to Run Nginx

  • Run the proxy: sudo openresty
    • Standard nginx: nginx
  • Test syntax: sudo openresty -t
    • Standard nginx: nginx -t
  • Reload the configuration: sudo openresty -s reload
    • Standard nginx: nginx -s reload
  • Stop the server: sudo openresty -s quit
    • Standard nginx: nginx -s quit
  • Specify the configuration file: sudo openresty -c /path/to/nginx.conf
    • Standard nginx: nginx -c /path/to/nginx.conf

Proxy to Confluence

  • The location has to be root, i.e. location / {}
  • To the confluence website: proxy_pass https://wiki.ncsa.illinois.edu
  • Auto-login to an account: proxy_set_header Authorization "Bearer <PAT>";
    • PAT can be generated from the user's account settings
  • Other heads are used to make sure the contents can be loaded. Some may be redundant or unrelated.

Potential Issues

  • Go to Find Spaces -> Click into a space will lead the user to the real address that starts with https://wiki.ncsa.illinois.edu
  • The Analytics page does not work

Authentication Error

The proxy is working, but the authentication isn't. The issue is described in the markdown in the folders:

Releases

No releases published

Packages