Configuration de tracker pour Phabricator

This commit is contained in:
Hamza Dely 2015-10-26 21:49:45 +01:00
parent 22137c76d5
commit 60b1e7137c
4 changed files with 140 additions and 2 deletions

12
Bundler/phabricator.xml Normal file
View file

@ -0,0 +1,12 @@
<Bundle name="phabricator">
<Package name="mysql-server"/>
<Package name="mysql-client"/>
<Package name="php5-mysql"/>
<Package name="php5-curl"/>
<Package name="php5-ldap"/> <!-- Pour faire fonctionner le backend LDAP de Phabricator-->
<Package name="php5-apcu"/>
<Package name="php5-gd"/>
<Package name="python-pygments"/>
<Python name="/etc/nginx/sites-available/phabricator"/>
<Python name="/etc/nginx/sites-available/phabricator_alt_file_domain"/>
</Bundle>

View file

@ -403,8 +403,10 @@
<Group name="tracker"
profile="true">
<Group name="crans-vm-jessie"/>
<!-- <Group name="http-server"/> -->
<Group name="https_cert"/>
<Group name="nginx"/>
<Group name="php"/>
<Group name="phabricator"/>
</Group>
<Group name="redisdead"
@ -1092,6 +1094,11 @@
<!--TODO: initscript, conf, monitoring, etc-->
</Group>
<Group name="phabricator">
<!-- Serveur faisant tourner Phabricator -->
<Bundle name="phabricator"/>
</Group>
<!-- *** CUPS *** -->
<Group name="cups-service-client">
@ -1104,7 +1111,6 @@
<Bundle name="cups-service"/>
</Group>
<!-- +=================================+ -->
<!-- | Tous les groupes intermediaires | -->
<!-- +=================================+ -->

View file

@ -0,0 +1,60 @@
# -*- mode: python; encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["mode"] = 0644
comment_start = "#"
out("""server {
listen 80;
listen [::]:80 ipv6only=on;
server_name phabricator phabricator.crans.org;
return 301 https://phabricator.crans.org$request_uri;
# On spécifie au client qu'il ne doit pas faire de HTTP ici
add_header Strict-Transport-Security "max-age=31536000";
}
server {
listen 443;
listen [::]:443 ipv6only=on;
server_name phabricator phabricator.crans.org;
root /var/phabricator/phabricator/webroot;
ssl on;
ssl_certificate /etc/ssl/certs/phabricator.pem;
ssl_certificate_key /etc/ssl/private/phabricator.key;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location = /favicon.ico {
try_files $uri =204;
}
location /index.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
#required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
#variables to make the $_SERVER populate in PHP
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
}
}""")

View file

@ -0,0 +1,60 @@
# -*- mode: python; encoding: utf-8 -*-
info["owner"] = "root"
info["group"] = "root"
info["mode"] = 0644
comment_start = "#"
out("""server {
listen 80;
listen [::]:80;
server_name tracker tracker.crans.org;
return 301 https://tracker.crans.org$request_uri;
# On spécifie au client qu'il ne doit pas faire de HTTP ici
add_header Strict-Transport-Security "max-age=31536000";
}
server {
listen 443;
listen [::]:443;
server_name tracker tracker.crans.org;
root /var/phabricator/phabricator/webroot;
ssl on;
ssl_certificate /etc/ssl/certs/phabricator.pem;
ssl_certificate_key /etc/ssl/private/phabricator.key;
location / {
index index.php;
rewrite ^/(.*)$ /index.php?__path__=/$1 last;
}
location = /favicon.ico {
try_files $uri =204;
}
location /index.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
#required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
#variables to make the $_SERVER populate in PHP
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
}
}""")