![]() We will leave the default nginx server block file intact in case you need to use this in the future. It will then the information to our BitTorrent Sync web interface listening on the local interface. Now, we can configure our nginx server blocks to use our SSL certificates when communicating with remote clients. Configure Nginx to Encrypt Traffic with SSL and Pass to BitTorrent Sync In this field, enter your server’s domain name or public IP address. The only one that really matters is this one: Common Name (e.g. You will be asked to fill out some information for your certificate. ![]() Now, we can create our SSL certificate and key in a single motion by issuing this command: sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt We’ll do this under the nginx configuration directory hierarchy: sudo mkdir /etc/nginx/ssl The first step towards getting this set up is to create a directory to hold our SSL certificate and key. This will allow us to securely administer our BitTorrent Sync instance remotely.Īgain, we will need to do all of these steps on both of our hosts. We are going to set up nginx with SSL to proxy connections through SSL to our BitTorrent web interface. ![]() This could allow anyone watching traffic between our server and local computer to see any communication sent between our machines. We restricted access like this because, although the BitTorrent Sync traffic itself is encrypted, the traffic to the web interface is transmitted in plain text. This would normally mean that we would not have access to this when running BitTorrent Sync on a remote server. You may have noticed that we configured our web interface to only be available on the local loopback interface ( 127.0.0.1). But for now, we need to set up our nginx web server with SSL. We will set up our sync directories in a bit. Now, we have BitTorrent Sync set up for the most part. Configure SSL Front-end to the BitTorrent Sync Web Interface If you mis-configure these, run the command again to correct your selections. The above choices though are very important.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |