server/uwsgi,root
This commit is contained in:
parent
7c7b178392
commit
9c52f1bd61
1 changed files with 47 additions and 1 deletions
|
@ -447,6 +447,51 @@ Security
|
||||||
|
|
||||||
add_header Content-Security-Policy "default-src 'self'" always;
|
add_header Content-Security-Policy "default-src 'self'" always;
|
||||||
|
|
||||||
|
* /etc/nginx/uwsgi.conf
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
uwsgi_param client_address $remote_addr;
|
||||||
|
uwsgi_param client_port $remote_port;
|
||||||
|
uwsgi_param client_ciphers $ssl_ciphers;
|
||||||
|
uwsgi_param client_curves $ssl_curves;
|
||||||
|
|
||||||
|
uwsgi_param session_reused $ssl_session_reused;
|
||||||
|
uwsgi_param session_id $ssl_session_id;
|
||||||
|
uwsgi_param session_cipher $ssl_cipher;
|
||||||
|
uwsgi_param session_protocol $ssl_protocol;
|
||||||
|
|
||||||
|
uwsgi_param server_protocol $server_protocol;
|
||||||
|
uwsgi_param server_address $server_addr;
|
||||||
|
uwsgi_param server_port $server_port;
|
||||||
|
|
||||||
|
uwsgi_param uri_scheme $scheme;
|
||||||
|
uwsgi_param uri_name $server_name;
|
||||||
|
uwsgi_param uri_request $request_uri;
|
||||||
|
uwsgi_param uri_document $document_uri;
|
||||||
|
uwsgi_param uri_query $query_string;
|
||||||
|
uwsgi_param uri_method $request_method;
|
||||||
|
|
||||||
|
uwsgi_param content_type $content_type;
|
||||||
|
uwsgi_param content_length $content_length;
|
||||||
|
|
||||||
|
Apps
|
||||||
|
^^^^
|
||||||
|
|
||||||
|
* /etc/uwsgi/apps-enabled/root.ini
|
||||||
|
|
||||||
|
.. code:: ini
|
||||||
|
|
||||||
|
[uwsgi]
|
||||||
|
chown-socket = user
|
||||||
|
uid = user
|
||||||
|
gid = user
|
||||||
|
chdir = /d/projects/root
|
||||||
|
plugins = python3
|
||||||
|
module = __init__
|
||||||
|
callable = app
|
||||||
|
threads = 2
|
||||||
|
|
||||||
Sites
|
Sites
|
||||||
^^^^^
|
^^^^^
|
||||||
|
|
||||||
|
@ -467,9 +512,10 @@ Sites
|
||||||
|
|
||||||
server {
|
server {
|
||||||
include rwx.work.conf;
|
include rwx.work.conf;
|
||||||
|
include uwsgi.conf;
|
||||||
server_name .rwx.work;
|
server_name .rwx.work;
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://10.0.0.1/;
|
uwsgi_pass unix:/run/uwsgi/app/root/socket;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue