Verified Commit 6c489c9b authored by Giancarlo Razzolini's avatar Giancarlo Razzolini
Browse files

roles/aurweb: Add the missing pieces to make smartgit work with uwsgi

Added the uwsgi_modifier1 option to nginx as described on [0] and also
change the chmod option on the socket to allow nginx to connect to it.

[0] https://gist.github.com/janoliver/85b682227bd9fcb8942885e60208bd76
parent 69ad9c76
......@@ -47,6 +47,7 @@ server {
location ~ "^/([a-z0-9][a-z0-9.+_-]*?)(\.git)?/(git-(receive|upload)-pack|HEAD|info/refs|objects/(info/(http-)?alternates|packs)|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))$" {
include uwsgi_params;
uwsgi_pass smartgit;
uwsgi_modifier1 9;
uwsgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
uwsgi_param PATH_INFO /aur.git/$3;
uwsgi_param GIT_HTTP_EXPORT_ALL "";
......
......@@ -2,6 +2,7 @@
plugins = cgi
socket = {{ smartgit_socket }}
chown-socket = {{ aurweb_user }}:http
chmod-socket = 770
threads = 4
cgi = /usr/lib/git-core/git-http-backend
uid = {{ aurweb_user }}
......
Supports Markdown
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