1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00
baikal_ynh/conf/nginx.conf
Jérôme Lebleu 1252a08d63 [enh] Update to Baikal 0.4.4 and download upstream sources
Sources are removed from the repository and downloaded instead to
improve readability and updates. This also comes with a patch to add
LDAP authentication backend.
The `install` and `remove` scripts have also been almost rewrite to
make use of new YunoHost helpers and facilities coming with 2.3.x.
2016-05-02 23:01:28 +02:00

27 lines
704 B
Nginx Configuration File

location #LOCATION# {
alias #DESTDIR#/html;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.php;
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location ~ ^#PATH#/(\.|Core|Specific) {
deny all;
}
location /.well-known/carddav {
rewrite ^(.*)$ #PATH#/card.php redirect;
}
location /.well-known/caldav {
rewrite ^(.*)$ #PATH#/cal.php redirect;
}