global: make ready for self hosting
This exposes a few more env vars for configuration & bypasses the Subscription backend so each user is Pro by default. This is required because there won't be any mechanism for the user to upgrade. We'll also have to disable a few things on the client side to avoid confusion.
This commit is contained in:
@@ -73,7 +73,11 @@ namespace Notesnook.API
|
||||
// This method gets called by the runtime. Use this method to add services to the container.
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
var dbSettings = Configuration.GetSection("MongoDbSettings").Get<DbSettings>();
|
||||
var dbSettings = new DbSettings
|
||||
{
|
||||
ConnectionString = Constants.MONGODB_CONNECTION_STRING,
|
||||
DatabaseName = Constants.MONGODB_DATABASE_NAME
|
||||
};
|
||||
services.AddSingleton<IDbSettings>(dbSettings);
|
||||
|
||||
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
||||
|
||||
Reference in New Issue
Block a user