# Redirections vers task.federez.net
ServerName phabricator.federez.net
ServerAlias todo.federez.net
RedirectMatch permanent ^/(?!.well-known/)(.+)$ https://task.federez.net/
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/nonagon.federez.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nonagon.federez.net/privkey.pem
ErrorLog ${APACHE_LOG_DIR}/phabricator-redir.error.log
CustomLog ${APACHE_LOG_DIR}/phabricator-redir.access.log combined
ServerName task.federez.net
ServerSignature Off
AllowOverride None
Require all granted
DocumentRoot /opt/phabricator/phabricator/webroot
# Limite à 32M
LimitRequestBody 33554432
# php_value post_max_size 32M
# php_value opcache.validate_timestamps 0
# php_value memory_limit 512M
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^/ws/(.*) ws://localhost:22280/$1 [P,L]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
ErrorLog ${APACHE_LOG_DIR}/phabricator-ssl.error.log
CustomLog ${APACHE_LOG_DIR}/phabricator-ssl.access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/nonagon.federez.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nonagon.federez.net/privkey.pem
ProxyPass /ws "http://127.0.0.1:22280/"
ProxyPassReverse /ws "http://127.0.0.1:22280/"