Skip to content

Instantly share code, notes, and snippets.

@leg0ffant
leg0ffant / README.md
Last active February 8, 2018 09:25 — forked from ichpuchtli/README.md
ArchLinux ARM nginx+uwsgi+flask

Dependencies

$ pacman -Syu python-pip nginx uwsgi-plugin-python uwsgi
$ pip install flask

Directory nginx creation

$ sudo mkdir -p /etc/nginx/sites-enabled

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

server {
server_name [host];
root /var/www/[document_root]; ## <-- Your only path reference.
# Enable compression, this will help if you have for instance advagg module
# by serving Gzip versions of the files.
gzip_static on;
location = /favicon.ico {
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048