Note: This guide assumes you are running a standard Debian or Ubuntu Linux distribution on the machine on which you'll be hosting the SNApp. This guide also assumes you are relatively familiar with using the command line.
lokinet.ini
file and adding a path to where your SNApp key files will be stored.lokinet.ini
file in the nano
text editor with the following command:lokinet.ini
file will be in the folder ~/.lokinet/lokinet.ini
, and can be opened in nano
with the following command:lokinet.ini
open in the text editor, scroll down to your [network]
section and add the following line:<user>
with your computer username. Alternatively, you can set the filepath to wherever you want your SNApp private key to be stored.snappkey.private
file in the directory you have set.host
command (the .loki address to query is the same, but the resolver uses the address 127.3.2.1
as to not conflict with other resolvers you may have installed):nginx
to run only on the lokinet interface (in /etc/nginx/sites-enabled/default
change any listen
directives to use the lokinet IP, and remove any IPV6 listen
directives)./var/www/html
to serve them as a SNApp. Make sure they are accessable via the www-data
user (or whichever user nginx
runs as).nginx
generate a directory listing by adding autoindex on;
into the location
block in the nginx config file.[network]
add one or more entries with the following format:mylokiaddress.loki
at port 1234..
), which means "this SNApp does NOT have that service available"