Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added port to config #525

Merged
merged 12 commits into from
Jun 13, 2020
Merged
11 changes: 8 additions & 3 deletions src/BaGet.Core/Configuration/BaGetOptions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BaGet.Core
{
public class BaGetOptions
{
/// <summary>
/// <summary>
/// The API Key required to authenticate package
/// operations. If empty, package operations do not require authentication.
/// </summary>
Expand Down Expand Up @@ -34,10 +33,16 @@ public class BaGetOptions
public bool AllowPackageOverwrites { get; set; } = false;

/// <summary>
/// If true, disables package pushing, deleting, and relisting.
/// If true, disables package pushing, deleting, and re-listing.
/// </summary>
public bool IsReadOnlyMode { get; set; } = false;

/// <summary>
/// The URLs the BaGet server will use.
/// As per documentation <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-3.1#server-urls">here (Server URLs)</a>.
/// </summary>
public string Urls { get; set; }

[Required]
public DatabaseOptions Database { get; set; }

Expand Down
3 changes: 2 additions & 1 deletion src/BaGet.Hosting/Extensions/IHostExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
using System.Threading.Tasks;
using BaGet.Core;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Options;
using Microsoft.Extensions.Hosting;
SeppPenner marked this conversation as resolved.
Show resolved Hide resolved

namespace BaGet.Hosting
{
Expand Down
91 changes: 66 additions & 25 deletions src/BaGet.UI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading