projects:hackhub
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:hackhub [2020/04/18 21:24] – hibby | projects:hackhub [2022/09/07 13:29] (current) – hibby | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Hackhub ====== | ====== Hackhub ====== | ||
| - | Hackhub is our member database | + | Hackhub is our member database |
| - | {{tag>project | + | It is very closely integrated with [[projects: |
| + | |||
| + | Hackhub code is hosted at [[https:// | ||
| + | |||
| + | ===== Hibby' | ||
| + | |||
| + | ==== Requirements ==== | ||
| + | |||
| + | |||
| + | Some form of OS (Debian stable): | ||
| + | |||
| + | * Python | ||
| + | * Flask | ||
| + | * Apache2 | ||
| + | * libapache2-mod-wsgi | ||
| + | * sqlite3 | ||
| + | * slapd | ||
| + | * ldap-utils | ||
| + | * ldapscripts | ||
| + | |||
| + | |||
| + | ==== Process ==== | ||
| + | |||
| + | - Install Debian Stable | ||
| + | - '' | ||
| + | - Import LDAP | ||
| + | - Migrate hackhub DB - ''/ | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - Configure '' | ||
| + | - '' | ||
| + | - Configure [[projects: | ||
| + | |||
| + | |||
| + | |||
| + | ===== LDAP ===== | ||
| + | ==== Exporting LDAP ==== | ||
| + | |||
| + | Export Database Schema and cn=config | ||
| + | - '' | ||
| + | |||
| + | Export user data: | ||
| + | - '' | ||
| + | |||
| + | Copy these two files to where the new db is. Use SCP or something secure | ||
| + | |||
| + | ==== Importing LDAP ==== | ||
| + | |||
| + | Stop slapd: | ||
| + | - '' | ||
| + | |||
| + | Make sure that the existing slapd.d folder on the new machine is empty: | ||
| + | - '' | ||
| + | |||
| + | Add the schema and cn=config: | ||
| + | - '' | ||
| + | |||
| + | Add the user data: | ||
| + | - '' | ||
| + | |||
| + | Change the ownership of the slapd.d folder: | ||
| + | - '' | ||
| + | |||
| + | Start slapd: | ||
| + | - '' | ||
| + | |||
| + | ====== Apache ====== | ||
| + | ===== Modules ===== | ||
| + | - '' | ||
| + | - '' | ||
| + | |||
| + | ===== Hackhub site file ===== | ||
| + | ==== Cleartext ==== | ||
| + | < | ||
| + | < | ||
| + | ServerName hub.57north.org.uk | ||
| + | ServerAdmin ctte-private@57north.co | ||
| + | RewriteEngine on | ||
| + | RewriteRule ^ https:// | ||
| + | </ | ||
| + | |||
| + | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ||
| + | </ | ||
| + | ==== SSL ==== | ||
| + | < | ||
| + | < | ||
| + | WSGIPythonPath / | ||
| + | < | ||
| + | ServerName hub.57north.org.uk | ||
| + | ServerAdmin ctte-private@57north.co | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | Include / | ||
| + | |||
| + | WSGIDaemonProcess hackhub user=hackhub group=hackhub threads=2 | ||
| + | WSGIScriptAlias / / | ||
| + | DocumentRoot / | ||
| + | |||
| + | RewriteEngine On | ||
| + | RewriteRule ^/$ https:// | ||
| + | |||
| + | < | ||
| + | WSGIProcessGroup hackhub | ||
| + | WSGIApplicationGroup %{GLOBAL} | ||
| + | Require all granted | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | {{tag> | ||
projects/hackhub.1587245086.txt.gz · Last modified: (external edit)
