diff --git a/in/personal/server/index.rst b/in/personal/server/index.rst index cfc3c9f..d2f6adf 100644 --- a/in/personal/server/index.rst +++ b/in/personal/server/index.rst @@ -447,6 +447,51 @@ Security 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 ^^^^^ @@ -467,9 +512,10 @@ Sites server { include rwx.work.conf; + include uwsgi.conf; server_name .rwx.work; location / { - proxy_pass http://10.0.0.1/; + uwsgi_pass unix:/run/uwsgi/app/root/socket; } }