-
-# To connect, the Director's bacula-dir.conf must have the
-# same Name and MediaType.
-#
-Device {
- Name = <%= bacula_filestor_device %>
- Media Type = <%= bacula_filestor_name %>
- Archive Device = <%= bacula_backup_path %>
- LabelMedia = yes;
- Random Access = Yes;
- AutomaticMount = yes;
- RemovableMedia = no;
- AlwaysOpen = no;
- Maximum Network Buffer Size = 65536
- Maximum Spool Size = 250G
- Maximum Job Spool Size = 50G
- Spool Directory = <%= bacula_backup_path %>/spool
+ TLS Enable = yes
+ TLS Require = yes
+ TLS Verify Peer = yes
+ TLS Allowed CN = "clientcerts/<%= bacula_director_address %>"
+ TLS CA Certificate File = "<%= bacula_ca_path %>"
+ # This is a server certificate, used for incoming director connections.
+ TLS Certificate = "<%= bacula_ssl_server_cert %>"
+ TLS Key = "<%= bacula_ssl_server_key %>"