Welcome! Log In Create A New Profile

Advanced

Nginx configuration to secure Baïkal installation

All files from this thread

File Name File Size   Posted by Date  
DSC_1413.jpg 176.3 KB open | download 09/26/2020 Read message
DSC_1417.jpg 137 KB open | download 09/26/2020 Read message
September 25, 2020 02:47PM
Hi to all. I'm newbie in Linux and nginx, so I need your help
I have Synology NAS with installed Baïkal CardDAV server.
Baïkal Installation instructions says:

"Only the html directory is needed to be accessible by your web browser. You may choose to lock out access to any other directory using your webserver configuration.
In particular you should really make sure that the Specific directory is not accessible directly, as this could contain your sql database.

The following configuration may be used for nginx:

server {
listen 80;
server_name dav.example.org;

root /var/www/baikal/html;
index index.php;

rewrite ^/.well-known/caldav /dav.php redirect;
rewrite ^/.well-known/carddav /dav.php redirect;

charset utf-8;

location ~ /(\.ht|Core|Specific) {
deny all;
return 404;
}

location ~ ^(.+\.php)(.*)$ {
try_files $fastcgi_script_name =404;
include /etc/nginx/fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
"
Source: https://sabre.io/baikal/install/

Can you tell me which nginx file(s) should I edit?
Subject Author Posted

Nginx configuration to secure Baïkal installation

Amateur Synologist September 25, 2020 02:47PM

Re: Nginx configuration to secure Baïkal installation

Thomas Ward September 25, 2020 03:40PM

Re: Nginx configuration to secure Baïkal installation

Amateur Synologist September 26, 2020 05:23AM

Re: Nginx configuration to secure Baïkal installation Attachments

Anonymous User September 26, 2020 05:38AM

Re: Nginx configuration to secure Baïkal installation

Francis Daly September 29, 2020 04:12PM

Re: Nginx configuration to secure Baïkal installation

Anonymous User September 25, 2020 08:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 226
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready