https://github.com/morucci/repoxplorer-cauth
https://github.com/morucci/repoxplorer-cauth
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morucci/repoxplorer-cauth
- Owner: morucci
- Created: 2018-07-06T12:52:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T15:33:25.000Z (over 7 years ago)
- Last Synced: 2025-04-04T21:14:17.958Z (about 1 year ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Install cauth for repoXplorer
=============================
Generate key pair for cauth
---------------------------
openssl genrsa -out privkey.pem 2048
openssl rsa -in privkey.pem -out pubkey.pem -pubout
Run the ansible playbook
------------------------
- Copy keypair files to files/
- Set the inventory
- ansible-playbook -i inventory.yaml -e @defaults/main.yaml cauth.yaml
For the repoxplorer virtualhost:
Now add some conf for the apache repoxplorer.conf
-------------------------------------------------
- Add in repoxplorer.conf
RewriteEngine on
RewriteRule "^/$" "/index.html" [R]
Order Allow,Deny
Allow from all
AuthType mod_auth_pubtkt
TKTAuthFakeBasicAuth on
TKTAuthLoginURL /auth/login
TKTAuthDebug 1
require valid-user
RequestHeader unset X-Remote-User
AuthType mod_auth_pubtkt
TKTAuthLoginURL /auth/login
TKTAuthFakeBasicAuth on
TKTAuthDebug 1
require valid-user
RequestHeader set X-Remote-User %{REMOTE_USER}s