Additional export backups feature.
This commit is contained in:
18
.templates/nginx/nginx_xport.inc
Normal file
18
.templates/nginx/nginx_xport.inc
Normal file
@ -0,0 +1,18 @@
|
||||
# Includable nginx configuration.
|
||||
#
|
||||
# Export backups feature.
|
||||
# Needs
|
||||
# setfacl -m u:www-data:r [...]/configs/xport_backup
|
||||
# setfacl -m u:www-data:rx [...]/storage/backups
|
||||
# setfacl -d -m u:www-data:r [...]/storage/backups/export
|
||||
# ACLs.
|
||||
location /export {
|
||||
root $PAR_SERVICE/storage/backups;
|
||||
auth_basic "Export backups area";
|
||||
auth_basic_user_file $PAR_SERVICE/configs/xport_backup;
|
||||
allow all;
|
||||
autoindex on;
|
||||
autoindex_exact_size off;
|
||||
autoindex_format html;
|
||||
autoindex_localtime on;
|
||||
}
|
Reference in New Issue
Block a user