Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:hg [2024/07/16 23:23] – [Run it] darrontools:hg [2024/07/16 23:26] (current) darron
Line 1: Line 1:
 ====Mercurial==== ====Mercurial====
 +
 +This example install mercurial as a web service.
  
 ===Install=== ===Install===
Line 107: Line 109:
 exec /bin/uwsgi --die-on-term --plugins python3 --uwsgi-socket /run/uwsgi/hgweb.sock --master --processes 4 --threads 2 --uid=www-data --gid=www-data --wsgi-file /var/www/cgi-bin/hgweb.wsgi exec /bin/uwsgi --die-on-term --plugins python3 --uwsgi-socket /run/uwsgi/hgweb.sock --master --processes 4 --threads 2 --uid=www-data --gid=www-data --wsgi-file /var/www/cgi-bin/hgweb.wsgi
 </code> </code>
 +===NGINX===
 +
 +<code>
 +...
 +        location / {
 +                uwsgi_pass unix:/run/uwsgi/hgweb.sock;
 +                include uwsgi_params;
 +
 +                limit_except GET HEAD {
 +                        auth_basic "Login";
 +                        auth_basic_user_file /var/www/private/htpasswd;
 +                }
 +        }
 +
 +        location /static/ {
 +                alias /usr/lib/python3/dist-packages/mercurial/templates/static/;
 +                expires 30d;
 +        }
 +...
 +</code>
 +
 ===Resources=== ===Resources===