example_config 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # Copyright (C) 2013 Aaron Lindsay <aaron@aclindsay.com>
  2. #
  3. # An example Asink configuration file. The `asink' command will search
  4. # for this file at ~/.asink/config. If you want to keep it somewhere
  5. # else, you must run the `asink' command with the `-c' option:
  6. # asink -c /path/to/your/config
  7. #
  8. # This file must remain only readable and writable only by the user
  9. # running the Asink client (i.e. `chmod 600 config`) because it contains
  10. # passwords and encryption keys.
  11. ########################################################################
  12. # The [local] section controls things which are independent of the rest
  13. # of the system (i.e. you can change these settings and not have to
  14. # change anything with your server configuration, or the config on any
  15. # of the other clients)
  16. ########################################################################
  17. [local]
  18. # The directory you want to keep synchronized between your computers
  19. syncdir = /home/user1/Asink
  20. ## The following directories/files are all typically located inside a
  21. ## .asink folder in your home directory.
  22. # A directory to store locally-cached versions of files.
  23. cachedir = /home/user1/.asink/cache
  24. # A temporary directory used by Asink when it needs to make temporary
  25. # files
  26. tmpdir = /home/user1/.asink/cache/.tmpdir
  27. # Where you want to store the SQLite database used by the Asink client
  28. dblocation = /home/user1/.asink/localdb.db
  29. # The socket to be used to communicate with the Asink client
  30. socket = /home/user1/.asink/asink.sock
  31. ########################################################################
  32. # The [server] section controls how the Asink client communicates with
  33. # the Asink server (`asinkd')
  34. ########################################################################
  35. [server]
  36. # The IP address or hostname of your Asink server (`asinkd')
  37. host = example.com
  38. # The port used to communicate with asinkd (i.e. 'asinkd -p 8080')
  39. port = 8080
  40. # Your user's username and password for communicating with the server
  41. # These can be set using the asinkd 'useradd', 'usermod', and 'userdel'
  42. # commands.
  43. username = user1
  44. # Don't surround with quotes unless your password contains them
  45. password = user1password
  46. ########################################################################
  47. # The [storage] section controls how/where your files are stored (The
  48. # server mentioned above only handles keeping track of file versions, it
  49. # doesn't actually store them). Asink supports several different types
  50. # of storage providers, and which options are available to you in this
  51. # section varies depending on which storage provider you use.
  52. #
  53. # The current storage options are:
  54. # local
  55. # FTP
  56. #
  57. # Be sure you only uncomment one of the following "method = ..." lines
  58. # along with its corresponding options.
  59. ########################################################################
  60. [storage]
  61. ## Local storage ##
  62. # Local storage is useful if you want to back your files up to a NFS
  63. # share or something you can mount locally (and also for testing Asink
  64. # with only one machine).
  65. method = local
  66. # The directory to store files in
  67. dir = /home/user1/.asink/localstorage
  68. ## FTP storage ##
  69. #method = ftp
  70. # The hostname or IP address of the FTP server
  71. #server = localhost
  72. # The remote port the FTP server is using
  73. # port = 21
  74. # The directory on the server you want to store your files in
  75. #directory = asink_ftp
  76. # The username and password used to connect to the FTP server
  77. #username = user1
  78. # Don't surround with quotes unless your password contains them
  79. #password = user1password
  80. ########################################################################
  81. # The [encryption] section controls whether or not files are encrypted,
  82. # and supplies the encryption key if they are.
  83. ########################################################################
  84. [encryption]
  85. # 'yes' if encryption is enabled and 'no' otherwise
  86. enabled = yes
  87. # The key only needs to be supplied if encryption is enabled. This
  88. # currently cannot be changed once you begin synchronizing files, so
  89. # choose it carefully. In the future, there will most likely be an
  90. # option to change the encryption key, but it will involve downloading,
  91. # decrypting, re-encrypting, and re-uploading all the versions of all
  92. # your files, so it will be a time-intensive operation.
  93. #
  94. # Note: The key should not be surrounded by quotes
  95. key = user1encryptionkey