chore: clean up backend code, fix most inspections

This commit is contained in:
sam 2024-12-14 16:51:58 +01:00
parent 49b2902d6d
commit 11257ae069
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
21 changed files with 86 additions and 27 deletions

View file

@ -12,6 +12,8 @@
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// ReSharper disable UnusedAutoPropertyAccessor.Global
using Serilog.Events;
namespace Foxnouns.Backend;
@ -20,8 +22,8 @@ public class Config
{
public string Host { get; init; } = "localhost";
public int Port { get; init; } = 3000;
public string BaseUrl { get; set; } = null!;
public string MediaBaseUrl { get; set; } = null!;
public string BaseUrl { get; init; } = null!;
public string MediaBaseUrl { get; init; } = null!;
public string Address => $"http://{Host}:{Port}";
public string MetricsAddress => $"http://{Host}:{Logging.MetricsPort}";