mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
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.
27 lines
704 B
Nginx Configuration File
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;
|
|
}
|