snac2 for Debian
================

A system-wide instance of snac2 will be set up automatically by the
package. The data will be stored in /var/lib/snac2.


Configuration
-------------

The host is set to "localhost" by default. This should be changed in
/var/lib/snac2/server.json.

Users can be added from the command line (run as root user):

# sudo -u debian-snac -- snac adduser /var/lib/snac2


Nginx reverse-proxy setup
-------------------------

An example nginx site configuration is available. It refers to
a self-signed certificate and private key, but you will likely need to
change this for a production instance.


Apache2 reverse-proxy setup
---------------------------

If apache2 is installed, then a reverse proxy is provided on the /snac web
path. However, I have not been able to get federation working properly with
apache yet (only with nginx, so far). There is an issue with the configuration
that leads to RSA verification errors (Debian bug #1041331).

To use the apache configuration, you will need to enable the proxy and
proxy_http modules:

# a2enmod proxy
# a2enmod proxy_http
# systemctl restart apache2


 -- James Valleroy <jvalleroy@mailbox.org>, Mon, 13 Nov 2023 09:56:10 -0500
