add auth basic to nginx configuration

replaces #230