Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/src/commit/13aa79d5f9d40198324d5a204534d30c66caece3/NzbDrone.Services.Api/Datastore/Connection.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Sonarr/NzbDrone.Services.Api/Datastore/Connection.cs

24 lines
700 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MongoDB.Driver;
namespace NzbDrone.Services.Api.Datastore
{
public class Connection
{
public MongoDatabase GetMainDb()
{
var db = GetMongoDb("mongodb://nzbdrone:h53huDrAzufRe8a3@ds035147.mongolab.com:35147/?safe=true;wtimeoutMS=2000", "services-dev");
return db;
}
public MongoDatabase GetMongoDb(string connectionString, string dbName)
{
var mongoServer = MongoServer.Create(connectionString);
var database = mongoServer.GetDatabase(dbName.ToLowerInvariant());
return database;
}
}
}