Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BDE
Note Kfet 2018
Commits
1c3efc10
Commit
1c3efc10
authored
Sep 09, 2018
by
Michaël Paulon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Config for note.paulon.org
parent
f00f4c3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
10 deletions
+28
-10
note_kfet/note.nginx
note_kfet/note.nginx
+8
-8
note_kfet/note.uwsgi
note_kfet/note.uwsgi
+2
-2
note_kfet/uwsgi_params
note_kfet/uwsgi_params
+18
-0
No files found.
note_kfet/note.nginx
View file @
1c3efc10
upstream
django
{
server unix:///
run/uwsgi/app
/note
_
kfet/sock
et
;
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;
}
}
note_kfet/note.uwsgi
View file @
1c3efc10
...
...
@@ -6,9 +6,9 @@ module = note_kfet.wsgi
master = true
processes = 4
socket = /
run/uwsgi/app
/note
_
kfet/sock
et
socket = /
var/www
/note
-
kfet/
note-kfet.
sock
uid = note
gid = www-data
home = /var/www/note-kfet/.env
vacuum = true
note_kfet/uwsgi_params
0 → 100644
View file @
1c3efc10
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;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment