New Members
  • Content Count

  • Joined

  • Last visited

About psyfer9983

  • Rank
    New User
  1. Just got this work. If anybody wants to do this, follow the steps. NOT RESPONSIBLE FOR ANY DAMAGES OF ANY KIND This is for a Synology NAS and that you have already installed a SSL on it. You will need SSH enabled and putty.exe to run some commands. You also need notepad++ to edit a file. 1. Stop BTSYNC if it is running in the package manager. 2. Make a copy of your Synology's certificate and key. In putty, login with "root" as the user and the password you use for the admin account. Now run the following commands. The files should automatically have the permissions and owner changed when BTSYNC starts up. cd /usr/syno/etc/sslcp ssl.crt/server.crt /volume1/@appstore/bittorrentsync/var/server.crtcp ssl.key/server.key /volume1/@appstore/bittorrentsync/var/server.key3. Now to change the config to run with HTTPS and have BTSNYC load the SSL files. Still using putty, run the following commands. Change the path if needed, like to the public folder. cd /volume1/@appstore/bittorrentsync/varcp sync.conf /volume1/Downloads/sync.confNow open the file with notepad++, I would make a backup first just to be safe. This is what the file should look like. There may be some slight differences. { "storage_path" : "/usr/local/bittorrentsync/var", "pid_file" : "/usr/local/bittorrentsync/var/", "display_new_version" : false, "vendor" : "Synology", "webui" : { "listen" : "", "allow_empty_password" : false, "directory_root" : "/", "dir_whitelist" : ["/volume1","/volume2","/volume3","/volume4","/volume5","/volume6","/volume7","/volume8","/volume9","/volume10","/volume11","/volume12","/volume13","/volume14","/volume15","/volume16","/volume17","/volume18","/volume19","/volume20"], "context":"{\"folder_blacklist\": [\"\/@\", \"\/lost\\\\+found\"]}", "directory_root_policy":"belowroot" }}Now add this right under ""allow_empty_password" : false,". NOTE THE "COMMAS" AT THE END OF EVERY LINE. "force_https" : true,"ssl_certificate" : "/volume1/@appstore/bittorrentsync/var/server.crt","ssl_private_key" : "/volume1/@appstore/bittorrentsync/var/server.key",It should look like this when you are done. { "storage_path" : "/usr/local/bittorrentsync/var", "pid_file" : "/usr/local/bittorrentsync/var/", "display_new_version" : false, "vendor" : "Synology", "webui" : { "listen" : "", "allow_empty_password" : false, "force_https" : true, "ssl_certificate" : "/volume1/@appstore/bittorrentsync/var/server.crt", "ssl_private_key" : "/volume1/@appstore/bittorrentsync/var/server.key", "directory_root" : "/", "dir_whitelist" : ["/volume1","/volume2","/volume3","/volume4","/volume5","/volume6","/volume7","/volume8","/volume9","/volume10","/volume11","/volume12","/volume13","/volume14","/volume15","/volume16","/volume17","/volume18","/volume19","/volume20"], "context":"{\"folder_blacklist\": [\"\/@\", \"\/lost\\\\+found\"]}", "directory_root_policy":"belowroot" }}Now save the file and copy it back to its original location. Still using putty, run the following commands. If you changed the path from the previous command you need to change it here too. cd /volume1/Downloadscp -f sync.conf /volume1/@appstore/bittorrentsync/var/sync.confNow start BYSYNC from the package manager. If you get an error, it most likely due to an error in the config file you edited. Double check it and copy it again. If BTSYNC runs, you should now have HTTPS forced and using your SSL certificate. I will try and answer any questions but I don't usually check here. I'm mostly on Synology forums.
  2. How about an option to change the SSL certificate? I have a Synology NAS with HTTPS enforcement turned on. Chrome barks at the self signed certificate and will not load the gui for Btsync. If the Btsync package was to use the certificate on the system, this would work too. The location of the SSL certificate on the Synology is "/usr/syno/etc/ssl" and the file names are "ssl.crt" and "ssl.key"
  3. Thanks for the reply. I looked at the template but it didn't really help me. I think a developer will have to answer this. Here is a hex dump of the settings.dat file. You can see where the certificate and key starts and ends. I was going to just replace them with my certificate and key but the lengths don't match. There is also a variable at the beginning of the certificate named "selfcert1816". I don't know if that is an identification of the type, length, encryption, etc... or what. I would just give it a try if I had another Disk Station around to test it on. I did find something else while looking around in the @appstore. In "@appstore/bittorrentsync/app" there is a file named config. It has the port and protocol settings. Here is whats inside it. { ".url": { "com.bittorrent.sync": { "title": "BitTorrent Sync", "desc": "BitTorrent Sync Web UI", "icon": "images/bittorrentsync-{0}.png", "type": "url", "protocol": "http", "port": "8890", "url": "/", "allUsers": false } }}I would like to use the same SSL that is on my Synology for Btsync. It would save me from having to use my public or LAN IP whenever I need to add or remove shares.
  4. Hello, I need to know if the SSL certificate can be changed. I have a Synology DS1813+ and the latest BTSYNC installed. I found that the "settings.dat" file located at "/volume1/@appstore/bittorrentsync/var" has the current SSL certificate with the private key that is self signed. I have encrypted and unencrypted versions of my SSL certificate that I use on my Synology for HTTPS. I was going to try and use them but they are different lengths. If this can't be done with the current version, could it be implemented in a new version? The reason is I have my Synology force HTTPS and chrome gives an error due to the self signed SSL certificate.
  5. First, I love this program. I use it across my Synology DS412+, my 2 PCs and my friends Synology. It works very well and I'm happy with it. But, I would like to see some more options for bandwidth limits. I have 4 shares setup on my Synology. 3 of the 4 are for internal LAN use only, so I don't need any throttling on them. The other share I do since it syncs on the internet. I have to use the same throttling for all in order to use it. Not a big deal, but it would be nice to have individual throttling for shares. The next option I would like to see is a setting for how often the shares get synced. Sort of a schedule for syncing, like a end of the day backup. If this was to be implemented I would use this for a backup option for a folder that has changes done to it almost all the time. I wouldn't have to have any file versions as it would sync to my Synology and I would use Time Backup for versions. This last request is a question first and depending on the answer, it could be a feature request. On the keys for the shares (read-only, read-write), are the key automatically update and sent to the current peers on the share (for security reasons)? If not, could that be a feature down the road? I'm asking for myself and for another. If the keys are renewed (every couple of days get new key for all clients) my friends and I would use this as a way to share mods, files and what ever else we would need to share for upcoming LAN parties. It would replace Dropbox as some of us can't use it due to firewalls, ect...