tildetown-admin/serversetup.md

29 lines
774 B
Markdown
Raw Permalink Normal View History

# server setup for ttadmin
## stuff to install
* autoconf?
* python3-dev
* postgresql-server-dev-9.5
2017-02-16 08:49:26 +00:00
* python 3.5+
* postgresql
* virtualenv
* nginx
## steps
* create ttadmin user
* ttadmin db user (or just rely on ident..?) / database created
2018-02-23 22:48:00 +00:00
* copy `create_keyfile.py` from `scripts/` and put it in `/opt/bin/`.
* copy `rename_user.py` from `scripts/` and put it in `/tilde/bin/`.
* `chmod u+x /opt/bin/create_keyfile.py``
* add to sudoers:
2018-02-23 22:48:00 +00:00
```
ttadmin ALL=(ALL)NOPASSWD:/usr/sbin/adduser,/bin/mkdir,/opt/bin/create_keyfile.py,/tilde/bin/rename_user.py
```
* have virtualenv with python 3.5+ ready, install tildetown-admin package into it
* run django app as wsgi container through gunicorn as the ttadmin user with venv active
* nginx proxy pass at /ttadmin