You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
940 B

4 years ago
  1. # Requirements
  2. List of debian (bullseye) package required.
  3. - `python3-ldap`
  4. - `python3-flask`
  5. - `uwsgi`
  6. - `uwsgi-plugin-python3`
  7. - `nginx`
  8. # Configuration
  9. 1. Copy all the files in `/opt/lilk-users`
  10. 2. Edit LDAP settings in `lilik_users.py`
  11. 3. Symlink `conf/uwsgi/lilik_users.ini` in `/etc/uwsgi/apps-enabled/`
  12. ln -s /opt/lilik-users/conf/uwsgi/lilik_users.ini /etc/uwsgi/apps-enabled/lilik_users.ini
  13. 4. Configure nginx creating a `server` section in `/etc/nginx/sites-enabled/`
  14. # /etc/nginx/sites-enabled/site1.lilik.it.conf
  15. server {
  16. listen 443 ssl http2;
  17. listen [::]:443 ssl http2;
  18. # ... server_name and ssl configuration
  19. include /opt/lilik-users/conf/nginx/locations-lilik_users.conf;
  20. }
  21. 5. Restart uwsgi and nginx
  22. systemctl restart uwsgi
  23. systemctl restart nginx
  24. 6. Point your browser to `/add/add.html` and enjoy!