Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 2.13 KB

README.md

File metadata and controls

47 lines (40 loc) · 2.13 KB

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: