Fix static path in nginx conf and replace localhost path in widget.js