hongy19’s blog
Nginx + fastcgi/wsgi
Python web application normally should use wsgi as interface, but nginx only support fascgi, scgi,uwsgi and no wsgi support.
flup is python library which could convert your wsgi application into fastcgi server. Since it is a library, you don’t need to setup other extra standalone application. flup could hep to set up fastcgi through Unix socket domain or TCP port. It is also support scgi. webpy could use flup directly.
app = web.application(urls,locals())
https build with nginx + startssl
startssl provide free ssl certification. I have updated my website with https connection.
first step is to apply a ssl certifciation on startsll. Please notice there is no username/passwd to login startsll website instead of certification on your browser which is installed by startssl. second is to follow website to fill personal information, validation your email and produce private key. private key (ssl.key) is not stored in startsll server, but it will download to your computer. Then you need to wait for sometimes to fetch public key (ssl.crt) and retrieve it from “Retrieve Certificate” in Toolbox.
…Linode VPS installation
first step is to init pacman and update system
- init pacman for package verification function according to link
- update system to latest one: pacman -Syu
next step is to add user and configure ssh
- add normal login user with useradd. Add user to group: wheel,log and systemctl-journal
- add user git with useradd
- update sudo with visudo
- add public key in .ssh/authorized_keys for git and normal login user
- install git and change user git shell to git-shell.
- test ssh public key access and git clone from local computer
- disable ssh root access and passwd login
- install sshguard
next step is to configure network,time and other system configuration
…