Commit 1c3efc10 authored by Michaël Paulon's avatar Michaël Paulon

Config for note.paulon.org

parent f00f4c3c
upstream django {
server unix:///run/uwsgi/app/note_kfet/socket;
upstream note-kfet {
server unix:///var/www/note-kfet/note-kfet.sock;
}
server {
listen 80;
listen [::]:80;
server_name note.crans.org;
server_name note.paulon.org;
server_tokens off;
return 301 https://$http_host$request_uri;
......@@ -14,14 +14,14 @@ server {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name note.crans.org;
server_name note.paulon.org;
server_tokens off;
keepalive_timeout 70;
ssl_protocols TLSv1.1 TLSv1.2;
ssl_certificate /etc/ssl/private/note.crt;
ssl_certificate_key /etc/ssl/private/note.key;
ssl_certificate /usr/certs/paulon.org_fullchain.pem;
ssl_certificate_key /usr/certs/paulon.org_privkey.pem;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
......@@ -40,7 +40,7 @@ server {
}
location / {
uwsgi_pass django;
include uwsgi_params;
uwsgi_pass note-kfet;
include /var/www/note-kfet/note_kfet/uwsgi_params;
}
}
......@@ -6,9 +6,9 @@ module = note_kfet.wsgi
master = true
processes = 4
socket = /run/uwsgi/app/note_kfet/socket
socket = /var/www/note-kfet/note-kfet.sock
uid = note
gid = www-data
home = /var/www/note-kfet/.env
vacuum = true
uwsgi_param QUERY_STRING $query_string;
uwsgi_param REQUEST_METHOD $request_method;
uwsgi_param CONTENT_TYPE $content_type;
uwsgi_param CONTENT_LENGTH $content_length;
uwsgi_param REQUEST_URI $request_uri;
uwsgi_param PATH_INFO $document_uri;
uwsgi_param DOCUMENT_ROOT $document_root;
uwsgi_param SERVER_PROTOCOL $server_protocol;
uwsgi_param REQUEST_SCHEME $scheme;
uwsgi_param HTTPS $https if_not_empty;
uwsgi_param REMOTE_ADDR $remote_addr;
uwsgi_param REMOTE_PORT $remote_port;
uwsgi_param SERVER_PORT $server_port;
uwsgi_param SERVER_NAME $server_name;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment