64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
---
|
|
|
|
to_backup:
|
|
- {
|
|
name: "var",
|
|
path: "/var",
|
|
auth_users: "backupcrans",
|
|
secrets_file: "/etc/rsyncd.secrets",
|
|
hosts_allow: ["zephir.adm.crans.org", "10.231.136.6"],
|
|
}
|
|
- {
|
|
name: "slash",
|
|
path: "/",
|
|
auth_users: "backupcrans",
|
|
secrets_file: "/etc/rsyncd.secrets",
|
|
hosts_allow: ["zephir.adm.crans.org", "10.231.136.6"],
|
|
}
|
|
- {
|
|
name: "ftp",
|
|
path: "/pubftp",
|
|
comment: "CRANS FTP",
|
|
uid: "nobody",
|
|
gid: "nogroup",
|
|
hosts_allow: "*",
|
|
read_only: "yes"
|
|
}
|
|
- {
|
|
name: "videolan",
|
|
path: "/pubftp/videolan",
|
|
comment: "VideoLAN repository",
|
|
uid: "nobody",
|
|
gid: "nogroup",
|
|
hosts_allow: "*",
|
|
read_only: "yes"
|
|
}
|
|
|
|
loc_nginx:
|
|
service_name: ftp
|
|
ssl: []
|
|
servers:
|
|
- server_name:
|
|
- "ftp"
|
|
- "ftp.*"
|
|
- "mirror"
|
|
- "mirror.*"
|
|
- "archive.ubuntu.com"
|
|
- "fr.archive.ubuntu.com"
|
|
- "security.ubuntu.com"
|
|
- "ftps"
|
|
- "ftps.*"
|
|
root: "/pubftp"
|
|
locations:
|
|
- filter: "/"
|
|
params:
|
|
- "autoindex on"
|
|
- "autoindex_exact_size off"
|
|
- "add_before_body /.html/HEADER.html"
|
|
- "add_after_body /.html/FOOTER.html"
|
|
- filter: "/pub/events/"
|
|
params:
|
|
- "mp4"
|
|
- "mp4_buffer_size 1m"
|
|
- "mp4_max_buffer_size 5m"
|