servnest-mkosi/install/nginx/sites/sftpgo-auth.conf

17 lines
416 B
Plaintext
Raw Normal View History

# This server block and the PHP script it maps make ServNest authentication available to the SFTPGo external authenticator
server {
listen [::1]:8055; # It's meant to stay a private IP
2023-01-29 21:14:36 +01:00
root /srv/servnest/core;
include inc/errors.conf;
location / {
2022-06-23 19:50:50 +02:00
try_files /sftpgo-auth.php =500;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
2023-01-29 21:14:36 +01:00
fastcgi_pass unix:/run/php-fpm/servnest.sock;
include inc/fastcgi.conf;
}
}