mirroir readonly du Gitit wiki.evolix.org (attention, ne rien commiter/merger sur ce dépôt) https://wiki.evolix.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.4 KiB

5 years ago
  1. # Howto gitit
  2. <https://github.com/jgm/gitit/tree/master/>
  3. ## Installation
  4. ### Paquet Debian (version 0.10)
  5. # apt install gitit
  6. ### Manuellement
  7. # apt install cabal-install ghc zlib1g-dev
  8. # adduser gitit
  9. # sudo -ui gitit
  10. $ cabal update
  11. $ cabal install gitit
  12. $ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile
  13. Note : /tmp doit être en EXEC pendant l'installation
  14. ## Configuration
  15. $ gitit --print-default-config > gitit.conf
  16. gitit.conf :
  17. ~~~
  18. address: 127.0.0.1
  19. repository-type: Git
  20. repository-path: git
  21. session-timeout: 36000
  22. default-extension: md
  23. default-page-type: Markdown
  24. front-page: index
  25. no-delete: index, Help
  26. use-cache: yes
  27. ~~~
  28. /etc/nginx/sites-available/gitit.conf :
  29. ~~~
  30. server {
  31. server_name gitit.example.com;
  32. listen 0.0.0.0:80;
  33. listen [::]:80;
  34. location /_register {
  35. allow 192.0.2.42;
  36. deny all;
  37. proxy_pass http://127.0.0.1:5001/_register;
  38. proxy_set_header X-Real-IP $remote_addr;
  39. proxy_redirect off;
  40. }
  41. location / {
  42. proxy_pass http://127.0.0.1:5001/;
  43. proxy_set_header X-Real-IP $remote_addr;
  44. proxy_redirect off;
  45. }
  46. access_log /var/log/nginx/gitit/access.log;
  47. error_log /var/log/nginx/gitit/error.log;
  48. }
  49. ~~~
  50. ## Lancement
  51. $ gitit -f gitit.conf
  52. Pour voir la liste des langages supportés pour le highlighting :
  53. $ pandoc -v