ajout de qq infos
This commit is contained in:
parent
73647d2866
commit
09c5aa136a
|
@ -23,42 +23,47 @@ Note : /tmp doit être en EXEC pendant l'installation
|
||||||
|
|
||||||
gitit.conf :
|
gitit.conf :
|
||||||
|
|
||||||
---
|
~~~
|
||||||
address: 127.0.0.1
|
address: 127.0.0.1
|
||||||
repository-type: Git
|
repository-type: Git
|
||||||
repository-path: git
|
repository-path: git
|
||||||
session-timeout: 36000
|
session-timeout: 36000
|
||||||
default-extension: md
|
default-extension: md
|
||||||
default-page-type: Markdown
|
default-page-type: Markdown
|
||||||
front-page: index
|
front-page: index
|
||||||
no-delete: index, Help
|
no-delete: index, Help
|
||||||
use-cache: yes
|
use-cache: yes
|
||||||
|
~~~
|
||||||
|
|
||||||
/etc/nginx/sites-available/gitit.conf :
|
/etc/nginx/sites-available/gitit.conf :
|
||||||
|
|
||||||
---
|
~~~
|
||||||
server {
|
server {
|
||||||
server_name gitit.example.com;
|
server_name gitit.example.com;
|
||||||
listen 0.0.0.0:80;
|
listen 0.0.0.0:80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
location /_register {
|
location /_register {
|
||||||
allow 192.0.2.42;
|
allow 192.0.2.42;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:5001/_register;
|
proxy_pass http://127.0.0.1:5001/_register;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
|
||||||
location / {
|
|
||||||
proxy_pass http://127.0.0.1:5001/;
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
|
||||||
proxy_redirect off;
|
|
||||||
}
|
|
||||||
access_log /var/log/nginx/gitit/access.log;
|
|
||||||
error_log /var/log/nginx/gitit/error.log;
|
|
||||||
}
|
}
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:5001/;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_redirect off;
|
||||||
|
}
|
||||||
|
access_log /var/log/nginx/gitit/access.log;
|
||||||
|
error_log /var/log/nginx/gitit/error.log;
|
||||||
|
}
|
||||||
|
~~~
|
||||||
|
|
||||||
## Lancement
|
## Lancement
|
||||||
|
|
||||||
$ gitit -f gitit.conf
|
$ gitit -f gitit.conf
|
||||||
|
|
||||||
|
|
||||||
|
Pour voir la liste des langages supportés pour le highlighting :
|
||||||
|
|
||||||
|
$ pandoc -v
|
Loading…
Reference in a new issue