Snippets

Anton Shestakov hgweb-apache2-ansible

Updated by Anton Shestakov

File roles/hgweb/defaults/main.yml Modified

  • Ignore whitespace
  • Hide word diff
 hgweb_mercurial_rev: stable
 hgweb_evolve_url: https://www.mercurial-scm.org/repo/evolve
 hgweb_evolve_rev: stable
+hgweb_workers: 1
 ...

File roles/hgweb/templates/etc/apache2/sites-available/hgweb.conf Modified

  • Ignore whitespace
  • Hide word diff
 
 	WSGIScriptAlias / /home/{{ hgweb_user }}/hgwebfiles/hgweb.wsgi
 	WSGIProcessGroup hgweb
-	WSGIDaemonProcess hgweb user='{{ hgweb_user }}'
+	WSGIDaemonProcess hgweb user='{{ hgweb_user }}' processes={{ hgweb_workers }}
 	# home=/home/{{ hgweb_user }}/hgwebfiles/
 	# group='{{ hgweb_user }}'
-	# processes=2 maximum-requests=100
+	# maximum-requests=100
 	# umask=0027
 
 	Alias /static/ /home/{{ hgweb_user }}/hg/mercurial/templates/static/
Updated by Anton Shestakov

File roles/hgweb/tasks/main.yml Modified

  • Ignore whitespace
  • Hide word diff
     - build-essential
     - mercurial
     - python-dev
+    - python-pygments  # for hightlight extension
   tags: [packages, inert]
 
 - include: appinstall.yml
Updated by Anton Shestakov

File roles/hgweb/templates/etc/apache2/sites-available/hgweb.conf Modified

  • Ignore whitespace
  • Hide word diff
 <VirtualHost *:80>
 	ServerName {{ hgweb_subdomain }}.{{ hostname }}
+	ServerAdmin webmaster@{{ hostname }}
 
-	ServerAdmin webmaster@{{ hostname }}
 	DocumentRoot /home/{{ hgweb_user }}/hg/mercurial/templates
 
 	ErrorLog ${APACHE_LOG_DIR}/{{ hgweb_subdomain }}.{{ hostname }}.error.log
Updated by Anton Shestakov

File roles/hgweb/templates/etc/apache2/sites-available/hgweb.conf Modified

  • Ignore whitespace
  • Hide word diff
 
 	ErrorLog ${APACHE_LOG_DIR}/{{ hgweb_subdomain }}.{{ hostname }}.error.log
 	CustomLog ${APACHE_LOG_DIR}/{{ hgweb_subdomain }}.{{ hostname }}.access.log combined
+	# LogLevel info
 
 	WSGIScriptAlias / /home/{{ hgweb_user }}/hgwebfiles/hgweb.wsgi
 	WSGIProcessGroup hgweb
Updated by Anton Shestakov

File roles/hgweb/templates/etc/apache2/sites-available/hgweb.conf Modified

  • Ignore whitespace
  • Hide word diff
 	WSGIScriptAlias / /home/{{ hgweb_user }}/hgwebfiles/hgweb.wsgi
 	WSGIProcessGroup hgweb
 	WSGIDaemonProcess hgweb user='{{ hgweb_user }}'
-# home=/home/{{ hgweb_user }}/hgwebfiles/
-# group='{{ hgweb_user }}'
-# processes=2 maximum-requests=100
-# umask=0027
+	# home=/home/{{ hgweb_user }}/hgwebfiles/
+	# group='{{ hgweb_user }}'
+	# processes=2 maximum-requests=100
+	# umask=0027
 
 	Alias /static/ /home/{{ hgweb_user }}/hg/mercurial/templates/static/
 	<Directory /home/{{ hgweb_user }}/hg/mercurial/templates/static>
  1. Prev
  2. 1
  3. 2
  4. Next