FTP settings

You can index files remotely using FTP.

Here is a list of FTP settings:

Name

Environment Variable

Default value

Documentation

fs.provider

FSCRAWLER_FS_PROVIDER

"local"

Set it to "ftp" for FTP crawling

server.hostname

FSCRAWLER_SERVER_HOSTNAME

null

Hostname

server.port

FSCRAWLER_SERVER_PORT

21

Port

server.username

FSCRAWLER_SERVER_USERNAME

anonymous

Username / Password

server.password

FSCRAWLER_SERVER_PASSWORD

null

Username / Password

Deprecated since version 2.10: The server.protocol setting is deprecated. Use fs.provider instead.

Username / Password

Let’s say you want to index from a remote server using FTP:

  • FS URL: /path/to/data/dir/on/server

  • Server: mynode.mydomain.com

  • Username: username (default to anonymous)

  • Password: password

  • Provider: ftp

  • Port: 21 (default to 21)

name: "test"
fs:
  provider: "ftp"
  url: "/path/to/data/dir/on/server"
server:
  hostname: "mynode.mydomain.com"
  port: 21
  username: "username"
  password: "password"