Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fe17473ae | ||
|
|
609cf8cfac | ||
|
|
678da30b09 | ||
|
|
d19412f4bb | ||
|
|
1665d6e537 | ||
|
|
fd210f2404 | ||
|
|
c33729fb44 | ||
|
|
7983bf3ee4 | ||
|
|
a09f60aea7 | ||
|
|
28b5893c21 | ||
|
|
25b47d8b6c | ||
|
|
85f5b8a7da | ||
|
|
ab9333f99a | ||
|
|
d60f8fc905 | ||
|
|
fe1f4412d8 | ||
|
|
f191533410 | ||
|
|
a894707536 | ||
|
|
d2ccc84286 | ||
|
|
f2ec43f2d2 | ||
|
|
7feccc8d9f |
@@ -47,7 +47,7 @@ public class ModrinthApiHelper
|
||||
|
||||
var request = new RestRequest(url)
|
||||
{
|
||||
Timeout = 60 * 15
|
||||
Timeout = 300000
|
||||
};
|
||||
|
||||
request.AddHeader("Content-Type", "application/json");
|
||||
|
||||
@@ -209,7 +209,7 @@ public class WingsApiHelper
|
||||
|
||||
var request = new RestRequest(url)
|
||||
{
|
||||
Timeout = 60 * 15
|
||||
Timeout = 300000
|
||||
};
|
||||
|
||||
request.AddHeader("Content-Type", "application/json");
|
||||
|
||||
226
Moonlight/App/Configuration/ConfigV1.cs
Normal file
226
Moonlight/App/Configuration/ConfigV1.cs
Normal file
@@ -0,0 +1,226 @@
|
||||
namespace Moonlight.App.Configuration;
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
public class ConfigV1
|
||||
{
|
||||
[JsonProperty("Moonlight")] public MoonlightData Moonlight { get; set; } = new();
|
||||
|
||||
public class MoonlightData
|
||||
{
|
||||
[JsonProperty("AppUrl")] public string AppUrl { get; set; } = "http://your-moonlight-url-without-slash";
|
||||
|
||||
[JsonProperty("Database")] public DatabaseData Database { get; set; } = new();
|
||||
|
||||
[JsonProperty("DiscordBotApi")] public DiscordBotData DiscordBotApi { get; set; } = new();
|
||||
|
||||
[JsonProperty("DiscordBot")] public DiscordBotData DiscordBot { get; set; } = new();
|
||||
|
||||
[JsonProperty("Domains")] public DomainsData Domains { get; set; } = new();
|
||||
|
||||
[JsonProperty("Html")] public HtmlData Html { get; set; } = new();
|
||||
|
||||
[JsonProperty("Marketing")] public MarketingData Marketing { get; set; } = new();
|
||||
|
||||
[JsonProperty("OAuth2")] public OAuth2Data OAuth2 { get; set; } = new();
|
||||
|
||||
[JsonProperty("Security")] public SecurityData Security { get; set; } = new();
|
||||
|
||||
[JsonProperty("Mail")] public MailData Mail { get; set; } = new();
|
||||
|
||||
[JsonProperty("Cleanup")] public CleanupData Cleanup { get; set; } = new();
|
||||
|
||||
[JsonProperty("Subscriptions")] public SubscriptionsData Subscriptions { get; set; } = new();
|
||||
|
||||
[JsonProperty("DiscordNotifications")]
|
||||
public DiscordNotificationsData DiscordNotifications { get; set; } = new();
|
||||
|
||||
[JsonProperty("Statistics")] public StatisticsData Statistics { get; set; } = new();
|
||||
|
||||
[JsonProperty("Rating")] public RatingData Rating { get; set; } = new();
|
||||
|
||||
[JsonProperty("SmartDeploy")] public SmartDeployData SmartDeploy { get; set; } = new();
|
||||
|
||||
[JsonProperty("Sentry")] public SentryData Sentry { get; set; } = new();
|
||||
}
|
||||
|
||||
public class CleanupData
|
||||
{
|
||||
[JsonProperty("Cpu")] public long Cpu { get; set; } = 90;
|
||||
|
||||
[JsonProperty("Memory")] public long Memory { get; set; } = 8192;
|
||||
|
||||
[JsonProperty("Wait")] public long Wait { get; set; } = 15;
|
||||
|
||||
[JsonProperty("Uptime")] public long Uptime { get; set; } = 6;
|
||||
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("MinUptime")] public long MinUptime { get; set; } = 10;
|
||||
}
|
||||
|
||||
public class DatabaseData
|
||||
{
|
||||
[JsonProperty("Database")] public string Database { get; set; } = "moonlight_db";
|
||||
|
||||
[JsonProperty("Host")] public string Host { get; set; } = "your.database.host";
|
||||
|
||||
[JsonProperty("Password")] public string Password { get; set; } = "secret";
|
||||
|
||||
[JsonProperty("Port")] public long Port { get; set; } = 3306;
|
||||
|
||||
[JsonProperty("Username")] public string Username { get; set; } = "moonlight_user";
|
||||
}
|
||||
|
||||
public class DiscordBotData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("Token")] public string Token { get; set; } = "discord token here";
|
||||
|
||||
[JsonProperty("PowerActions")] public bool PowerActions { get; set; } = false;
|
||||
[JsonProperty("SendCommands")] public bool SendCommands { get; set; } = false;
|
||||
}
|
||||
|
||||
public class DiscordNotificationsData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("WebHook")] public string WebHook { get; set; } = "http://your-discord-webhook-url";
|
||||
}
|
||||
|
||||
public class DomainsData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
[JsonProperty("AccountId")] public string AccountId { get; set; } = "cloudflare acc id";
|
||||
|
||||
[JsonProperty("Email")] public string Email { get; set; } = "cloudflare@acc.email";
|
||||
|
||||
[JsonProperty("Key")] public string Key { get; set; } = "secret";
|
||||
}
|
||||
|
||||
public class HtmlData
|
||||
{
|
||||
[JsonProperty("Headers")] public HeadersData Headers { get; set; } = new();
|
||||
}
|
||||
|
||||
public class HeadersData
|
||||
{
|
||||
[JsonProperty("Color")] public string Color { get; set; } = "#4b27e8";
|
||||
|
||||
[JsonProperty("Description")] public string Description { get; set; } = "the next generation hosting panel";
|
||||
|
||||
[JsonProperty("Keywords")] public string Keywords { get; set; } = "moonlight";
|
||||
|
||||
[JsonProperty("Title")] public string Title { get; set; } = "Moonlight - endelon.link";
|
||||
}
|
||||
|
||||
public class MailData
|
||||
{
|
||||
[JsonProperty("Email")] public string Email { get; set; } = "username@your.mail.host";
|
||||
|
||||
[JsonProperty("Server")] public string Server { get; set; } = "your.mail.host";
|
||||
|
||||
[JsonProperty("Password")] public string Password { get; set; } = "secret";
|
||||
|
||||
[JsonProperty("Port")] public int Port { get; set; } = 465;
|
||||
|
||||
[JsonProperty("Ssl")] public bool Ssl { get; set; } = true;
|
||||
}
|
||||
|
||||
public class MarketingData
|
||||
{
|
||||
[JsonProperty("BrandName")] public string BrandName { get; set; } = "Endelon Hosting";
|
||||
|
||||
[JsonProperty("Imprint")] public string Imprint { get; set; } = "https://your-site.xyz/imprint";
|
||||
|
||||
[JsonProperty("Privacy")] public string Privacy { get; set; } = "https://your-site.xyz/privacy";
|
||||
[JsonProperty("About")] public string About { get; set; } = "https://your-site.xyz/about";
|
||||
[JsonProperty("Website")] public string Website { get; set; } = "https://your-site.xyz";
|
||||
}
|
||||
|
||||
public class OAuth2Data
|
||||
{
|
||||
[JsonProperty("OverrideUrl")] public string OverrideUrl { get; set; } = "https://only-for-development.cases";
|
||||
|
||||
[JsonProperty("EnableOverrideUrl")] public bool EnableOverrideUrl { get; set; } = false;
|
||||
|
||||
[JsonProperty("Providers")]
|
||||
public OAuth2ProviderData[] Providers { get; set; } = Array.Empty<OAuth2ProviderData>();
|
||||
}
|
||||
|
||||
public class OAuth2ProviderData
|
||||
{
|
||||
[JsonProperty("Id")] public string Id { get; set; }
|
||||
|
||||
[JsonProperty("ClientId")] public string ClientId { get; set; }
|
||||
|
||||
[JsonProperty("ClientSecret")] public string ClientSecret { get; set; }
|
||||
}
|
||||
|
||||
public class RatingData
|
||||
{
|
||||
[JsonProperty("Enabled")] public bool Enabled { get; set; } = false;
|
||||
|
||||
[JsonProperty("Url")] public string Url { get; set; } = "https://link-to-google-or-smth";
|
||||
|
||||
[JsonProperty("MinRating")] public int MinRating { get; set; } = 4;
|
||||
|
||||
[JsonProperty("DaysSince")] public int DaysSince { get; set; } = 5;
|
||||
}
|
||||
|
||||
public class SecurityData
|
||||
{
|
||||
[JsonProperty("Token")] public string Token { get; set; } = Guid.NewGuid().ToString();
|
||||
|
||||
[JsonProperty("ReCaptcha")] public ReCaptchaData ReCaptcha { get; set; }
|
||||
}
|
||||
|
||||
public class ReCaptchaData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("SiteKey")] public string SiteKey { get; set; } = "recaptcha site key here";
|
||||
|
||||
[JsonProperty("SecretKey")] public string SecretKey { get; set; } = "recaptcha secret here";
|
||||
}
|
||||
|
||||
public class SentryData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("Dsn")] public string Dsn { get; set; } = "http://your-sentry-url-here";
|
||||
}
|
||||
|
||||
public class SmartDeployData
|
||||
{
|
||||
[JsonProperty("Server")] public SmartDeployServerData Server { get; set; } = new();
|
||||
}
|
||||
|
||||
public class SmartDeployServerData
|
||||
{
|
||||
[JsonProperty("EnableOverride")] public bool EnableOverride { get; set; } = false;
|
||||
|
||||
[JsonProperty("OverrideNode")] public long OverrideNode { get; set; } = 1;
|
||||
}
|
||||
|
||||
public class StatisticsData
|
||||
{
|
||||
[JsonProperty("Enabled")] public bool Enabled { get; set; } = false;
|
||||
|
||||
[JsonProperty("Wait")] public long Wait { get; set; } = 15;
|
||||
}
|
||||
|
||||
public class SubscriptionsData
|
||||
{
|
||||
[JsonProperty("SellPass")] public SellPassData SellPass { get; set; } = new();
|
||||
}
|
||||
|
||||
public class SellPassData
|
||||
{
|
||||
[JsonProperty("Enable")] public bool Enable { get; set; } = false;
|
||||
|
||||
[JsonProperty("Url")] public string Url { get; set; } = "https://not-implemented-yet";
|
||||
}
|
||||
}
|
||||
@@ -52,14 +52,14 @@ public class DataContext : DbContext
|
||||
if (!optionsBuilder.IsConfigured)
|
||||
{
|
||||
var config = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Database");
|
||||
.Get()
|
||||
.Moonlight.Database;
|
||||
|
||||
var connectionString = $"host={config.GetValue<string>("Host")};" +
|
||||
$"port={config.GetValue<int>("Port")};" +
|
||||
$"database={config.GetValue<string>("Database")};" +
|
||||
$"uid={config.GetValue<string>("Username")};" +
|
||||
$"pwd={config.GetValue<string>("Password")}";
|
||||
var connectionString = $"host={config.Host};" +
|
||||
$"port={config.Port};" +
|
||||
$"database={config.Database};" +
|
||||
$"uid={config.Username};" +
|
||||
$"pwd={config.Password}";
|
||||
|
||||
optionsBuilder.UseMySql(
|
||||
connectionString,
|
||||
|
||||
30
Moonlight/App/Extensions/JSRuntimeExtensions.cs
Normal file
30
Moonlight/App/Extensions/JSRuntimeExtensions.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Microsoft.JSInterop;
|
||||
|
||||
namespace Moonlight.App.Extensions;
|
||||
|
||||
public static class JSRuntimeExtensions
|
||||
{
|
||||
public static async Task InvokeVoidSafeAsync(this IJSRuntime jsRuntime, string method, params object[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
await jsRuntime.InvokeVoidAsync(method, args);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static void InvokeVoidSafe(this IJSRuntime jsRuntime, string method, params object[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
jsRuntime.InvokeVoidAsync(method, args);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,16 +65,14 @@ public class DatabaseCheckupService
|
||||
|
||||
var configService = new ConfigService(new StorageService());
|
||||
var dateTimeService = new DateTimeService();
|
||||
|
||||
var config = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Database");
|
||||
|
||||
var connectionString = $"host={config.GetValue<string>("Host")};" +
|
||||
$"port={config.GetValue<int>("Port")};" +
|
||||
$"database={config.GetValue<string>("Database")};" +
|
||||
$"uid={config.GetValue<string>("Username")};" +
|
||||
$"pwd={config.GetValue<string>("Password")}";
|
||||
var config = configService.Get().Moonlight.Database;
|
||||
|
||||
var connectionString = $"host={config.Host};" +
|
||||
$"port={config.Port};" +
|
||||
$"database={config.Database};" +
|
||||
$"uid={config.Username};" +
|
||||
$"pwd={config.Password}";
|
||||
|
||||
string file = PathBuilder.File("storage", "backups", $"{dateTimeService.GetCurrentUnix()}-mysql.sql");
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ public class WingsFileAccess : FileAccess
|
||||
request.AddParameter("name", "files");
|
||||
request.AddParameter("filename", name);
|
||||
request.AddHeader("Content-Type", "multipart/form-data");
|
||||
request.AddHeader("Origin", ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl"));
|
||||
request.AddHeader("Origin", ConfigService.Get().Moonlight.AppUrl);
|
||||
request.AddFile("files", () =>
|
||||
{
|
||||
return new StreamProgressHelper(dataStream)
|
||||
|
||||
66
Moonlight/App/Helpers/Retry.cs
Normal file
66
Moonlight/App/Helpers/Retry.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
namespace Moonlight.App.Helpers;
|
||||
|
||||
public class Retry
|
||||
{
|
||||
private List<Type> RetryExceptionTypes;
|
||||
private List<Func<Exception, bool>> RetryFilters;
|
||||
private int RetryTimes = 1;
|
||||
|
||||
public Retry()
|
||||
{
|
||||
RetryExceptionTypes = new();
|
||||
RetryFilters = new();
|
||||
}
|
||||
|
||||
public Retry Times(int times)
|
||||
{
|
||||
RetryTimes = times;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Retry At(Func<Exception, bool> filter)
|
||||
{
|
||||
RetryFilters.Add(filter);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Retry At<T>()
|
||||
{
|
||||
RetryExceptionTypes.Add(typeof(T));
|
||||
return this;
|
||||
}
|
||||
|
||||
public async Task Call(Func<Task> method)
|
||||
{
|
||||
int triesLeft = RetryTimes;
|
||||
|
||||
do
|
||||
{
|
||||
try
|
||||
{
|
||||
await method.Invoke();
|
||||
return;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if(triesLeft < 1) // Throw if no tries left
|
||||
throw;
|
||||
|
||||
if (RetryExceptionTypes.Any(x => x.FullName == e.GetType().FullName))
|
||||
{
|
||||
triesLeft--;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (RetryFilters.Any(x => x.Invoke(e)))
|
||||
{
|
||||
triesLeft--;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Throw if not filtered -> unknown/unhandled
|
||||
throw;
|
||||
}
|
||||
} while (triesLeft >= 0);
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public class WingsConsoleHelper
|
||||
{
|
||||
ServerRepository = serverRepository;
|
||||
|
||||
AppUrl = configService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
AppUrl = configService.Get().Moonlight.AppUrl;
|
||||
}
|
||||
|
||||
public async Task ConnectWings(WingsConsole console, Server server)
|
||||
|
||||
@@ -15,7 +15,7 @@ public class WingsJwtHelper
|
||||
{
|
||||
ConfigService = configService;
|
||||
|
||||
AppUrl = ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
AppUrl = ConfigService.Get().Moonlight.AppUrl;
|
||||
}
|
||||
|
||||
public string Generate(string secret, Action<Dictionary<string, string>> claimsAction)
|
||||
|
||||
@@ -30,14 +30,14 @@ public class DiscordBotController : Controller
|
||||
ServerService = serverService;
|
||||
|
||||
var config = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("DiscordBotApi");
|
||||
.Get()
|
||||
.Moonlight.DiscordBotApi;
|
||||
|
||||
Enable = config.GetValue<bool>("Enable");
|
||||
Enable = config.Enable;
|
||||
|
||||
if (Enable)
|
||||
{
|
||||
Token = config.GetValue<string>("Token");
|
||||
Token = config.Token;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,19 +27,39 @@ public class LogMigrator : ILogger
|
||||
switch (logLevel)
|
||||
{
|
||||
case LogLevel.Critical:
|
||||
Logger.Fatal($"[{Name}] {formatter(state, exception)}");
|
||||
Logger.Fatal(formatter(state, exception));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Fatal(exception);
|
||||
|
||||
break;
|
||||
case LogLevel.Warning:
|
||||
Logger.Warn($"[{Name}] {formatter(state, exception)}");
|
||||
Logger.Warn(formatter(state, exception));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Warn(exception);
|
||||
|
||||
break;
|
||||
case LogLevel.Debug:
|
||||
Logger.Debug($"[{Name}] {formatter(state, exception)}");
|
||||
Logger.Debug(formatter(state, exception));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Debug(exception);
|
||||
|
||||
break;
|
||||
case LogLevel.Error:
|
||||
Logger.Error($"[{Name}] {formatter(state, exception)}");
|
||||
Logger.Error(formatter(state, exception));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Error(exception);
|
||||
|
||||
break;
|
||||
case LogLevel.Information:
|
||||
Logger.Info($"[{Name}] {formatter(state, exception)}");
|
||||
Logger.Info(formatter(state, exception));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Info(exception);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
71
Moonlight/App/LogMigrator/SentryDiagnosticsLogger.cs
Normal file
71
Moonlight/App/LogMigrator/SentryDiagnosticsLogger.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using Moonlight.App.Helpers;
|
||||
using Sentry;
|
||||
using Sentry.Extensibility;
|
||||
|
||||
namespace Moonlight.App.LogMigrator;
|
||||
|
||||
public class SentryDiagnosticsLogger : IDiagnosticLogger
|
||||
{
|
||||
private readonly SentryLevel Level;
|
||||
|
||||
public SentryDiagnosticsLogger(SentryLevel level)
|
||||
{
|
||||
Level = level;
|
||||
}
|
||||
|
||||
public bool IsEnabled(SentryLevel level)
|
||||
{
|
||||
if ((int)level >= (int)Level)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Log(SentryLevel logLevel, string message, Exception? exception = null, params object?[] args)
|
||||
{
|
||||
switch (logLevel)
|
||||
{
|
||||
case SentryLevel.Debug:
|
||||
Logger.Debug(string.Format(message, args));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Debug(exception);
|
||||
|
||||
break;
|
||||
|
||||
case SentryLevel.Info:
|
||||
Logger.Info(string.Format(message, args));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Info(exception);
|
||||
|
||||
break;
|
||||
|
||||
case SentryLevel.Warning:
|
||||
Logger.Warn(string.Format(message, args));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Warn(exception);
|
||||
|
||||
break;
|
||||
|
||||
case SentryLevel.Error:
|
||||
Logger.Error(string.Format(message, args));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Error(exception);
|
||||
|
||||
break;
|
||||
|
||||
case SentryLevel.Fatal:
|
||||
Logger.Fatal(string.Format(message, args));
|
||||
|
||||
if(exception != null)
|
||||
Logger.Fatal(exception);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,16 +42,16 @@ public class CleanupService
|
||||
StartedAt = DateTimeService.GetCurrent();
|
||||
CompletedAt = DateTimeService.GetCurrent();
|
||||
IsRunning = false;
|
||||
|
||||
var config = ConfigService.GetSection("Moonlight").GetSection("Cleanup");
|
||||
|
||||
if (!config.GetValue<bool>("Enable") || ConfigService.DebugMode)
|
||||
var config = ConfigService.Get().Moonlight.Cleanup;
|
||||
|
||||
if (!config.Enable || ConfigService.DebugMode)
|
||||
{
|
||||
Logger.Info("Disabling cleanup service");
|
||||
return;
|
||||
}
|
||||
|
||||
Timer = new(TimeSpan.FromMinutes(config.GetValue<int>("Wait")));
|
||||
Timer = new(TimeSpan.FromMinutes(config.Wait));
|
||||
|
||||
Task.Run(Run);
|
||||
}
|
||||
@@ -63,12 +63,12 @@ public class CleanupService
|
||||
IsRunning = true;
|
||||
|
||||
using var scope = ServiceScopeFactory.CreateScope();
|
||||
var config = ConfigService.GetSection("Moonlight").GetSection("Cleanup");
|
||||
var config = ConfigService.Get().Moonlight.Cleanup;
|
||||
|
||||
var maxCpu = config.GetValue<int>("Cpu");
|
||||
var minMemory = config.GetValue<int>("Memory");
|
||||
var maxUptime = config.GetValue<int>("Uptime");
|
||||
var minUptime = config.GetValue<int>("MinUptime");
|
||||
var maxCpu = config.Cpu;
|
||||
var minMemory = config.Memory;
|
||||
var maxUptime = config.Uptime;
|
||||
var minUptime = config.MinUptime;
|
||||
|
||||
var nodeRepository = scope.ServiceProvider.GetRequiredService<NodeRepository>();
|
||||
var nodeService = scope.ServiceProvider.GetRequiredService<NodeService>();
|
||||
|
||||
@@ -22,14 +22,14 @@ public class DiscordNotificationService
|
||||
Event = eventSystem;
|
||||
ResourceService = resourceService;
|
||||
|
||||
var config = configService.GetSection("Moonlight").GetSection("DiscordNotifications");
|
||||
var config = configService.Get().Moonlight.DiscordNotifications;
|
||||
|
||||
if (config.GetValue<bool>("Enable"))
|
||||
if (config.Enable)
|
||||
{
|
||||
Logger.Info("Discord notifications enabled");
|
||||
|
||||
Client = new(config.GetValue<string>("WebHook"));
|
||||
AppUrl = configService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
Client = new(config.WebHook);
|
||||
AppUrl = configService.Get().Moonlight.AppUrl;
|
||||
|
||||
Event.On<User>("supportChat.new", this, OnNewSupportChat);
|
||||
Event.On<SupportChatMessage>("supportChat.message", this, OnSupportChatMessage);
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Primitives;
|
||||
using Moonlight.App.Configuration;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Services.Files;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Moonlight.App.Services;
|
||||
|
||||
public class ConfigService : IConfiguration
|
||||
public class ConfigService
|
||||
{
|
||||
private readonly StorageService StorageService;
|
||||
|
||||
private IConfiguration Configuration;
|
||||
private ConfigV1 Configuration;
|
||||
|
||||
public bool DebugMode { get; private set; } = false;
|
||||
public bool SqlDebugMode { get; private set; } = false;
|
||||
@@ -41,33 +40,22 @@ public class ConfigService : IConfiguration
|
||||
|
||||
public void Reload()
|
||||
{
|
||||
Configuration = new ConfigurationBuilder().AddJsonStream(
|
||||
new MemoryStream(Encoding.ASCII.GetBytes(
|
||||
File.ReadAllText(
|
||||
PathBuilder.File("storage", "configs", "config.json")
|
||||
)
|
||||
)
|
||||
)).Build();
|
||||
var path = PathBuilder.File("storage", "configs", "config.json");
|
||||
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
File.WriteAllText(path, "{}");
|
||||
}
|
||||
|
||||
Configuration = JsonConvert.DeserializeObject<ConfigV1>(
|
||||
File.ReadAllText(path)
|
||||
) ?? new ConfigV1();
|
||||
|
||||
File.WriteAllText(path, JsonConvert.SerializeObject(Configuration));
|
||||
}
|
||||
|
||||
public IEnumerable<IConfigurationSection> GetChildren()
|
||||
public ConfigV1 Get()
|
||||
{
|
||||
return Configuration.GetChildren();
|
||||
}
|
||||
|
||||
public IChangeToken GetReloadToken()
|
||||
{
|
||||
return Configuration.GetReloadToken();
|
||||
}
|
||||
|
||||
public IConfigurationSection GetSection(string key)
|
||||
{
|
||||
return Configuration.GetSection(key);
|
||||
}
|
||||
|
||||
public string this[string key]
|
||||
{
|
||||
get => Configuration[key];
|
||||
set => Configuration[key] = value;
|
||||
return Configuration;
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public class ServerListCommand : BaseModule
|
||||
{
|
||||
embed = dcs.EmbedBuilderModule.StandardEmbed("Sorry ;( \n Please first create and/or link a Account to Discord! \n Press the Button to register/log in.", Color.Red, command.User);
|
||||
components = new ComponentBuilder();
|
||||
components.WithButton("Click Here", style: ButtonStyle.Link, url: ConfigService.GetSection("Moonlight").GetValue<String>("AppUrl"));
|
||||
components.WithButton("Click Here", style: ButtonStyle.Link, url: ConfigService.Get().Moonlight.AppUrl);
|
||||
|
||||
await command.RespondAsync(embed: embed.Build(), components: components.Build(), ephemeral: true);
|
||||
return;
|
||||
@@ -57,7 +57,7 @@ public class ServerListCommand : BaseModule
|
||||
components.WithButton("Panel",
|
||||
emote: Emote.Parse("<a:Earth:1092814004113657927>"),
|
||||
style: ButtonStyle.Link,
|
||||
url: $"{ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl")}");
|
||||
url: $"{ConfigService.Get().Moonlight.AppUrl}");
|
||||
|
||||
if (servers.Count > 25)
|
||||
{
|
||||
|
||||
@@ -44,10 +44,10 @@ public DiscordBotService(
|
||||
ServiceScope = ServiceScopeFactory.CreateScope();
|
||||
|
||||
var discordConfig = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("DiscordBot");
|
||||
.Get()
|
||||
.Moonlight.DiscordBot;
|
||||
|
||||
if (!discordConfig.GetValue<bool>("Enable"))
|
||||
if (!discordConfig.Enable)
|
||||
return;
|
||||
|
||||
Client.Log += Log;
|
||||
@@ -67,7 +67,7 @@ public DiscordBotService(
|
||||
|
||||
await ActivityStatusModule.UpdateActivityStatusList();
|
||||
|
||||
await Client.LoginAsync(TokenType.Bot, discordConfig.GetValue<string>("Token"));
|
||||
await Client.LoginAsync(TokenType.Bot, discordConfig.Token);
|
||||
await Client.StartAsync();
|
||||
|
||||
await Task.Delay(-1);
|
||||
|
||||
@@ -87,8 +87,8 @@ public class EmbedBuilderModule : BaseModule
|
||||
int[] randomNumbers = new int[] { 1, 3, 8, 11, 20 };
|
||||
|
||||
if (randomNumbers.Contains(random.Next(1, 24)))
|
||||
return new EmbedAuthorBuilder().WithName(Client.CurrentUser.Username + " - The Rick version").WithUrl(ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl")).WithIconUrl("https://cdn.discordapp.com/attachments/750696464014901268/1092783310129860618/rick.gif");
|
||||
return new EmbedAuthorBuilder().WithName(Client.CurrentUser.Username + " - The Rick version").WithUrl(ConfigService.Get().Moonlight.AppUrl).WithIconUrl("https://cdn.discordapp.com/attachments/750696464014901268/1092783310129860618/rick.gif");
|
||||
|
||||
return new EmbedAuthorBuilder().WithName(Client.CurrentUser.Username).WithUrl(ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl")).WithIconUrl(Client.CurrentUser.GetAvatarUrl());
|
||||
return new EmbedAuthorBuilder().WithName(Client.CurrentUser.Username).WithUrl(ConfigService.Get().Moonlight.AppUrl).WithIconUrl(Client.CurrentUser.GetAvatarUrl());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
// stopping
|
||||
// offline
|
||||
// installing
|
||||
if (!ConfigService.GetSection("Moonlight").GetSection("DiscordBot").GetValue<bool>("PowerActions") && costomId[1] is "Start" or "Restart" or "Stop" or "Kill" or "Update")
|
||||
if (!ConfigService.Get().Moonlight.DiscordBot.PowerActions && costomId[1] is "Start" or "Restart" or "Stop" or "Kill" or "Update")
|
||||
{
|
||||
embed = dcs.EmbedBuilderModule.StandardEmbed($"This feature is disabled for Security reasons! \n If you believe this is a error please contact the Administrators from this panel.", Color.Red, component.User);
|
||||
await component.RespondAsync(embed: embed.Build(), ephemeral: true);
|
||||
@@ -80,7 +80,7 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
return;
|
||||
}
|
||||
|
||||
if (!ConfigService.GetSection("Moonlight").GetSection("DiscordBot").GetValue<bool>("SendCommands") && costomId[1] is "SendCommand")
|
||||
if (!ConfigService.Get().Moonlight.DiscordBot.SendCommands && costomId[1] is "SendCommand")
|
||||
{
|
||||
embed = dcs.EmbedBuilderModule.StandardEmbed($"This feature is disabled for Security reasons! \n If you believe this is a error please contact the Administrators from this panel.", Color.Red, component.User);
|
||||
await component.RespondAsync(embed: embed.Build(), ephemeral: true);
|
||||
@@ -302,7 +302,7 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
{
|
||||
embed = dcs.EmbedBuilderModule.StandardEmbed("Sorry ;( \n Please first create and/or link a Account to Discord! \n Press the Button to register/log in.", Color.Red, component.User);
|
||||
components = new ComponentBuilder();
|
||||
components.WithButton("Click Here", style: ButtonStyle.Link, url: ConfigService.GetSection("Moonlight").GetValue<String>("AppUrl"));
|
||||
components.WithButton("Click Here", style: ButtonStyle.Link, url: ConfigService.Get().Moonlight.AppUrl);
|
||||
|
||||
await component.RespondAsync(embed: embed.Build(), components: components.Build(), ephemeral: true);
|
||||
return;
|
||||
@@ -332,7 +332,7 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
components.WithButton("Panel",
|
||||
emote: Emote.Parse("<a:Earth:1092814004113657927>"),
|
||||
style: ButtonStyle.Link,
|
||||
url: $"{ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl")}");
|
||||
url: $"{ConfigService.Get().Moonlight.AppUrl}");
|
||||
|
||||
components.WithButton("Previous-page",
|
||||
emote: Emote.Parse("<:ArrowLeft:1101547474180649030>"),
|
||||
@@ -378,7 +378,7 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
|
||||
var components = new ComponentBuilder();
|
||||
|
||||
if (ConfigService.GetSection("Moonlight").GetSection("DiscordBot").GetValue<bool>("PowerActions"))
|
||||
if (ConfigService.Get().Moonlight.DiscordBot.PowerActions)
|
||||
{
|
||||
components.WithButton("Start", style: ButtonStyle.Success, customId: $"Sm.Start.{server.Id}", disabled: false);
|
||||
components.WithButton("Restart", style: ButtonStyle.Primary, customId: $"Sm.Restart.{server.Id}", disabled: false);
|
||||
@@ -389,14 +389,14 @@ public class ServerListComponentHandlerModule : BaseModule
|
||||
components.WithButton("Way2Server",
|
||||
emote: Emote.Parse("<a:Earth:1092814004113657927>"),
|
||||
style: ButtonStyle.Link,
|
||||
url: $"{ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl")}/server/{server.Uuid}");
|
||||
url: $"{ConfigService.Get().Moonlight.AppUrl}/server/{server.Uuid}");
|
||||
|
||||
components.WithButton("Update",
|
||||
emote: Emote.Parse("<:refresh:1101547898803605605>"),
|
||||
style: ButtonStyle.Secondary,
|
||||
customId: $"Sm.Update.{server.Id}");
|
||||
|
||||
if (ConfigService.GetSection("Moonlight").GetSection("DiscordBot").GetValue<bool>("SendCommands"))
|
||||
if (ConfigService.Get().Moonlight.DiscordBot.SendCommands)
|
||||
{
|
||||
components.WithButton("SendCommand",
|
||||
emote: Emote.Parse("<:Console:1101547358157819944>"),
|
||||
|
||||
@@ -33,15 +33,15 @@ public class DomainService
|
||||
SharedDomainRepository = sharedDomainRepository;
|
||||
|
||||
var config = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Domains");
|
||||
.Get()
|
||||
.Moonlight.Domains;
|
||||
|
||||
AccountId = config.GetValue<string>("AccountId");
|
||||
AccountId = config.AccountId;
|
||||
|
||||
Client = new(
|
||||
new ApiKeyAuthentication(
|
||||
config.GetValue<string>("Email"),
|
||||
config.GetValue<string>("Key")
|
||||
config.Email,
|
||||
config.Key
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ public class ResourceService
|
||||
|
||||
public ResourceService(ConfigService configService)
|
||||
{
|
||||
AppUrl = configService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
AppUrl = configService.Get().Moonlight.AppUrl;
|
||||
}
|
||||
|
||||
public string Image(string name)
|
||||
|
||||
@@ -15,6 +15,7 @@ public class StorageService
|
||||
Directory.CreateDirectory(PathBuilder.Dir("storage", "configs"));
|
||||
Directory.CreateDirectory(PathBuilder.Dir("storage", "resources"));
|
||||
Directory.CreateDirectory(PathBuilder.Dir("storage", "backups"));
|
||||
Directory.CreateDirectory(PathBuilder.Dir("storage", "logs"));
|
||||
|
||||
if(IsEmpty(PathBuilder.Dir("storage", "resources")))
|
||||
{
|
||||
|
||||
@@ -25,16 +25,15 @@ public class ReCaptchaService
|
||||
ConfigService = configService;
|
||||
|
||||
var recaptchaConfig = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Security")
|
||||
.GetSection("ReCaptcha");
|
||||
.Get()
|
||||
.Moonlight.Security.ReCaptcha;
|
||||
|
||||
Enable = recaptchaConfig.GetValue<bool>("Enable");
|
||||
Enable = recaptchaConfig.Enable;
|
||||
|
||||
if (Enable)
|
||||
{
|
||||
SiteKey = recaptchaConfig.GetValue<string>("SiteKey");
|
||||
SecretKey = recaptchaConfig.GetValue<string>("SecretKey");
|
||||
SiteKey = recaptchaConfig.SiteKey;
|
||||
SecretKey = recaptchaConfig.SecretKey;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,14 +17,14 @@ public class MailService
|
||||
public MailService(ConfigService configService)
|
||||
{
|
||||
var mailConfig = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Mail");
|
||||
.Get()
|
||||
.Moonlight.Mail;
|
||||
|
||||
Server = mailConfig.GetValue<string>("Server");
|
||||
Password = mailConfig.GetValue<string>("Password");
|
||||
Email = mailConfig.GetValue<string>("Email");
|
||||
Port = mailConfig.GetValue<int>("Port");
|
||||
Ssl = mailConfig.GetValue<bool>("Ssl");
|
||||
Server = mailConfig.Server;
|
||||
Password = mailConfig.Password;
|
||||
Email = mailConfig.Email;
|
||||
Port = mailConfig.Port;
|
||||
Ssl = mailConfig.Ssl;
|
||||
}
|
||||
|
||||
public async Task SendMail(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Mappy.Net;
|
||||
using Moonlight.App.Database.Entities;
|
||||
using Moonlight.App.Exceptions;
|
||||
using Moonlight.App.Helpers;
|
||||
using Moonlight.App.Models.Misc;
|
||||
@@ -24,14 +25,17 @@ public class OAuth2Service
|
||||
ConfigService = configService;
|
||||
ServiceScopeFactory = serviceScopeFactory;
|
||||
|
||||
var config = ConfigService.GetSection("Moonlight").GetSection("OAuth2");
|
||||
var config = ConfigService
|
||||
.Get()
|
||||
.Moonlight.OAuth2;
|
||||
|
||||
Configs = config.GetSection("Providers").Get<OAuth2ProviderConfig[]>()
|
||||
?? Array.Empty<OAuth2ProviderConfig>();
|
||||
Configs = config.Providers
|
||||
.Select(Mapper.Map<OAuth2ProviderConfig>)
|
||||
.ToArray();
|
||||
|
||||
OverrideUrl = config.GetValue<string>("OverrideUrl");
|
||||
EnableOverrideUrl = config.GetValue<bool>("EnableOverrideUrl");
|
||||
AppUrl = configService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
OverrideUrl = config.OverrideUrl;
|
||||
EnableOverrideUrl = config.EnableOverrideUrl;
|
||||
AppUrl = configService.Get().Moonlight.AppUrl;
|
||||
|
||||
// Register additional providers here
|
||||
RegisterOAuth2<DiscordOAuth2Provider>("discord");
|
||||
|
||||
@@ -25,10 +25,9 @@ public class OneTimeJwtService
|
||||
var opt = new Dictionary<string, string>();
|
||||
options.Invoke(opt);
|
||||
|
||||
string secret = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Security")
|
||||
.GetValue<string>("Token");
|
||||
var secret = ConfigService
|
||||
.Get()
|
||||
.Moonlight.Security.Token;
|
||||
|
||||
var id = StringHelper.GenerateString(16);
|
||||
|
||||
@@ -55,10 +54,9 @@ public class OneTimeJwtService
|
||||
|
||||
public async Task<Dictionary<string, string>?> Validate(string token)
|
||||
{
|
||||
string secret = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Security")
|
||||
.GetValue<string>("Token");
|
||||
var secret = ConfigService
|
||||
.Get()
|
||||
.Moonlight.Security.Token;
|
||||
|
||||
string json;
|
||||
|
||||
|
||||
@@ -26,12 +26,12 @@ public class RatingService
|
||||
Event = eventSystem;
|
||||
UserRepository = userRepository;
|
||||
|
||||
var config = configService.GetSection("Moonlight").GetSection("Rating");
|
||||
var config = configService.Get().Moonlight.Rating;
|
||||
|
||||
Enabled = config.GetValue<bool>("Enabled");
|
||||
Url = config.GetValue<string>("Url");
|
||||
MinRating = config.GetValue<int>("MinRating");
|
||||
DaysSince = config.GetValue<int>("DaysSince");
|
||||
Enabled = config.Enabled;
|
||||
Url = config.Url;
|
||||
MinRating = config.MinRating;
|
||||
DaysSince = config.DaysSince;
|
||||
}
|
||||
|
||||
public async Task<bool> ShouldRate()
|
||||
|
||||
@@ -79,10 +79,20 @@ public class ServerService
|
||||
{
|
||||
Server server = EnsureNodeData(s);
|
||||
|
||||
return await WingsApiHelper.Get<ServerDetails>(
|
||||
server.Node,
|
||||
$"api/servers/{server.Uuid}"
|
||||
);
|
||||
ServerDetails result = null!;
|
||||
|
||||
await new Retry()
|
||||
.Times(3)
|
||||
.At(x => x.Message.Contains("A task was canceled"))
|
||||
.Call(async () =>
|
||||
{
|
||||
result = await WingsApiHelper.Get<ServerDetails>(
|
||||
server.Node,
|
||||
$"api/servers/{server.Uuid}"
|
||||
);
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task SetPowerState(Server s, PowerSignal signal)
|
||||
@@ -109,7 +119,8 @@ public class ServerService
|
||||
|
||||
var backup = new ServerBackup()
|
||||
{
|
||||
Name = $"Created at {DateTimeService.GetCurrent().ToShortDateString()} {DateTimeService.GetCurrent().ToShortTimeString()}",
|
||||
Name =
|
||||
$"Created at {DateTimeService.GetCurrent().ToShortDateString()} {DateTimeService.GetCurrent().ToShortTimeString()}",
|
||||
Uuid = Guid.NewGuid(),
|
||||
CreatedAt = DateTimeService.GetCurrent(),
|
||||
Created = false
|
||||
@@ -175,8 +186,15 @@ public class ServerService
|
||||
|
||||
try
|
||||
{
|
||||
await WingsApiHelper.Delete(serverData.Node, $"api/servers/{serverData.Uuid}/backup/{serverBackup.Uuid}",
|
||||
null);
|
||||
await new Retry()
|
||||
.Times(3)
|
||||
.At(x => x.Message.Contains("A task was canceled"))
|
||||
.Call(async () =>
|
||||
{
|
||||
await WingsApiHelper.Delete(serverData.Node,
|
||||
$"api/servers/{serverData.Uuid}/backup/{serverBackup.Uuid}",
|
||||
null);
|
||||
});
|
||||
}
|
||||
catch (WingsException e)
|
||||
{
|
||||
@@ -187,7 +205,7 @@ public class ServerService
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var backup = serverData.Backups.First(x => x.Uuid == serverBackup.Uuid);
|
||||
serverData.Backups.Remove(backup);
|
||||
|
||||
@@ -254,10 +272,11 @@ public class ServerService
|
||||
{
|
||||
// We have sadly no choice to use entity framework to do what the sql call does, there
|
||||
// are only slower ways, so we will use a raw sql call as a exception
|
||||
|
||||
|
||||
freeAllocations = NodeAllocationRepository
|
||||
.Get()
|
||||
.FromSqlRaw($"SELECT * FROM `NodeAllocations` WHERE ServerId IS NULL AND NodeId={node.Id} LIMIT {allocations}")
|
||||
.FromSqlRaw(
|
||||
$"SELECT * FROM `NodeAllocations` WHERE ServerId IS NULL AND NodeId={node.Id} LIMIT {allocations}")
|
||||
.ToArray();
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -285,7 +304,8 @@ public class ServerService
|
||||
Allocations = freeAllocations.ToList(),
|
||||
Backups = new(),
|
||||
OverrideStartup = "",
|
||||
DockerImageIndex = image.DockerImages.FindIndex(x => x.Default)
|
||||
DockerImageIndex = image.DockerImages.FindIndex(x => x.Default),
|
||||
Installing = true
|
||||
};
|
||||
|
||||
foreach (var imageVariable in image.Variables)
|
||||
@@ -304,14 +324,20 @@ public class ServerService
|
||||
|
||||
try
|
||||
{
|
||||
await WingsApiHelper.Post(node, $"api/servers", new CreateServer()
|
||||
{
|
||||
Uuid = newServerData.Uuid,
|
||||
StartOnCompletion = false
|
||||
});
|
||||
await new Retry()
|
||||
.Times(3)
|
||||
.At(x => x.Message.Contains("A task was canceled"))
|
||||
.Call(async () =>
|
||||
{
|
||||
await WingsApiHelper.Post(node, $"api/servers", new CreateServer()
|
||||
{
|
||||
Uuid = newServerData.Uuid,
|
||||
StartOnCompletion = false
|
||||
});
|
||||
});
|
||||
|
||||
//TODO: AuditLog
|
||||
|
||||
|
||||
return newServerData;
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -333,7 +359,7 @@ public class ServerService
|
||||
|
||||
server.Installing = true;
|
||||
ServerRepository.Update(server);
|
||||
|
||||
|
||||
//TODO: AuditLog
|
||||
}
|
||||
|
||||
@@ -369,8 +395,6 @@ public class ServerService
|
||||
|
||||
public async Task Delete(Server s)
|
||||
{
|
||||
throw new DisplayException("Deleting servers is currently disabled");
|
||||
|
||||
var backups = await GetBackups(s);
|
||||
|
||||
foreach (var backup in backups)
|
||||
@@ -391,7 +415,21 @@ public class ServerService
|
||||
.Include(x => x.Node)
|
||||
.First(x => x.Id == s.Id);
|
||||
|
||||
await WingsApiHelper.Delete(server.Node, $"api/servers/{server.Uuid}", null);
|
||||
try
|
||||
{
|
||||
await new Retry()
|
||||
.Times(3)
|
||||
.At(x => x.Message.Contains("A task was canceled"))
|
||||
.Call(async () =>
|
||||
{
|
||||
await WingsApiHelper.Delete(server.Node, $"api/servers/{server.Uuid}", null);
|
||||
});
|
||||
}
|
||||
catch (WingsException e)
|
||||
{
|
||||
if (e.StatusCode != 404)
|
||||
throw;
|
||||
}
|
||||
|
||||
foreach (var variable in server.Variables.ToArray())
|
||||
{
|
||||
@@ -418,19 +456,19 @@ public class ServerService
|
||||
{
|
||||
if (server.IsArchived)
|
||||
throw new DisplayException("Unable to archive an already archived server");
|
||||
|
||||
|
||||
// Archive server
|
||||
|
||||
|
||||
var backup = await CreateBackup(server);
|
||||
server.IsArchived = true;
|
||||
server.Archive = backup;
|
||||
|
||||
|
||||
ServerRepository.Update(server);
|
||||
|
||||
await Event.WaitForEvent<ServerBackup>("wings.backups.create", this, x => backup.Id == x.Id);
|
||||
|
||||
// Reset server
|
||||
|
||||
|
||||
var access = await CreateFileAccess(server, null!);
|
||||
var files = await access.Ls();
|
||||
foreach (var file in files)
|
||||
@@ -444,7 +482,7 @@ public class ServerService
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
await Event.Emit($"server.{server.Uuid}.archiveStatusChanged", server);
|
||||
}
|
||||
|
||||
@@ -466,7 +504,7 @@ public class ServerService
|
||||
|
||||
await RestoreBackup(server, server.Archive);
|
||||
|
||||
await Event.WaitForEvent<ServerBackup>("wings.backups.restore", this,
|
||||
await Event.WaitForEvent<ServerBackup>("wings.backups.restore", this,
|
||||
x => x.Id == server.Archive.Id);
|
||||
|
||||
server.IsArchived = false;
|
||||
|
||||
@@ -30,9 +30,8 @@ public class IdentityService
|
||||
HttpContextAccessor = httpContextAccessor;
|
||||
|
||||
Secret = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Security")
|
||||
.GetValue<string>("Token");
|
||||
.Get()
|
||||
.Moonlight.Security.Token;
|
||||
}
|
||||
|
||||
public async Task<User?> Get()
|
||||
|
||||
@@ -28,13 +28,12 @@ public class SmartDeployService
|
||||
public async Task<Node?> GetNode()
|
||||
{
|
||||
var config = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("SmartDeploy")
|
||||
.GetSection("Server");
|
||||
.Get()
|
||||
.Moonlight.SmartDeploy.Server;
|
||||
|
||||
if (config.GetValue<bool>("EnableOverride"))
|
||||
if (config.EnableOverride)
|
||||
{
|
||||
var nodeId = config.GetValue<int>("OverrideNode");
|
||||
var nodeId = config.OverrideNode;
|
||||
|
||||
return NodeRepository.Get().FirstOrDefault(x => x.Id == nodeId);
|
||||
}
|
||||
|
||||
@@ -17,13 +17,13 @@ public class StatisticsCaptureService
|
||||
DateTimeService = dateTimeService;
|
||||
|
||||
var config = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Statistics");
|
||||
.Get()
|
||||
.Moonlight.Statistics;
|
||||
|
||||
if(!config.GetValue<bool>("Enabled"))
|
||||
if(!config.Enabled)
|
||||
return;
|
||||
|
||||
var period = TimeSpan.FromMinutes(config.GetValue<int>("Wait"));
|
||||
var period = TimeSpan.FromMinutes(config.Wait);
|
||||
Timer = new(period);
|
||||
|
||||
Logger.Info("Starting statistics system");
|
||||
|
||||
@@ -38,9 +38,8 @@ public class UserService
|
||||
DateTimeService = dateTimeService;
|
||||
|
||||
JwtSecret = configService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Security")
|
||||
.GetValue<string>("Token");
|
||||
.Get()
|
||||
.Moonlight.Security.Token;
|
||||
}
|
||||
|
||||
public async Task<string> Register(string email, string password, string firstname, string lastname)
|
||||
|
||||
@@ -46,7 +46,10 @@
|
||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="7.0.0" />
|
||||
<PackageReference Include="QRCoder" Version="1.4.3" />
|
||||
<PackageReference Include="RestSharp" Version="109.0.0-preview.1" />
|
||||
<PackageReference Include="Sentry.AspNetCore" Version="3.33.1" />
|
||||
<PackageReference Include="Sentry.Serilog" Version="3.33.1" />
|
||||
<PackageReference Include="Serilog" Version="3.0.0" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="7.0.0" />
|
||||
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.1-dev-00910" />
|
||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.1-dev-00947" />
|
||||
<PackageReference Include="SSH.NET" Version="2020.0.2" />
|
||||
@@ -100,4 +103,12 @@
|
||||
<AdditionalFiles Include="Shared\Views\Server\Settings\ServerResetSetting.razor" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="storage\configs\config.json.bak">
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
@{
|
||||
var headerConfig = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Html")
|
||||
.GetSection("Headers");
|
||||
.Get()
|
||||
.Moonlight.Html.Headers;
|
||||
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
.Get()
|
||||
.Moonlight;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
@@ -26,16 +26,16 @@
|
||||
|
||||
<meta property="og:locale" content="de_DE"/>
|
||||
<meta property="og:type" content="article"/>
|
||||
<meta content="@(headerConfig.GetValue<string>("Title"))" property="og:title"/>
|
||||
<meta content="@(headerConfig.GetValue<string>("Description"))" property="og:description"/>
|
||||
<meta content="@(moonlightConfig.GetValue<string>("AppUrl"))" property="og:url"/>
|
||||
<meta content="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" property="og:image"/>
|
||||
<meta content="@(headerConfig.GetValue<string>("Color"))" data-react-helmet="true" name="theme-color"/>
|
||||
<meta content="@(headerConfig.Title)" property="og:title"/>
|
||||
<meta content="@(headerConfig.Description)" property="og:description"/>
|
||||
<meta content="@(moonlightConfig.AppUrl)" property="og:url"/>
|
||||
<meta content="@(moonlightConfig.AppUrl)/api/moonlight/resources/images/logolong.png" property="og:image"/>
|
||||
<meta content="@(headerConfig.Color)" data-react-helmet="true" name="theme-color"/>
|
||||
|
||||
<meta content="@(headerConfig.GetValue<string>("Description"))" name="description"/>
|
||||
<meta content="@(headerConfig.GetValue<string>("Keywords"))" name="keywords"/>
|
||||
<meta content="@(headerConfig.Description)" name="description"/>
|
||||
<meta content="@(headerConfig.Keywords)" name="keywords"/>
|
||||
|
||||
<link rel="shortcut icon" href="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg"/>
|
||||
<link rel="shortcut icon" href="@(moonlightConfig.AppUrl)/api/moonlight/resources/images/logo.svg"/>
|
||||
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700"/>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<div id="flashbang" class="flashbanglight"></div>
|
||||
|
||||
<div class="app-page-loader flex-column">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="h-25px"/>
|
||||
<img alt="Logo" src="@(moonlightConfig.AppUrl)/api/moonlight/resources/images/logo.svg" class="h-25px"/>
|
||||
|
||||
@{
|
||||
string loadingMessage;
|
||||
|
||||
@@ -29,7 +29,9 @@ using Moonlight.App.Services.Notifications;
|
||||
using Moonlight.App.Services.Sessions;
|
||||
using Moonlight.App.Services.Statistics;
|
||||
using Moonlight.App.Services.SupportChat;
|
||||
using Sentry;
|
||||
using Serilog;
|
||||
using Serilog.Events;
|
||||
using Serilog.Sinks.SystemConsole.Themes;
|
||||
|
||||
namespace Moonlight
|
||||
@@ -40,24 +42,65 @@ namespace Moonlight
|
||||
{
|
||||
// This will also copy all default config files
|
||||
var configService = new ConfigService(new StorageService());
|
||||
var shouldUseSentry = configService
|
||||
.Get()
|
||||
.Moonlight.Sentry.Enable;
|
||||
|
||||
if (configService.DebugMode)
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Verbose()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.CreateLogger();
|
||||
if (shouldUseSentry)
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Verbose()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.WriteTo.File(PathBuilder.File("storage", "logs", $"{DateTime.UtcNow:yyyy-MM-dd}.log"))
|
||||
.WriteTo.Sentry(options =>
|
||||
{
|
||||
options.MinimumBreadcrumbLevel = LogEventLevel.Debug;
|
||||
options.MinimumEventLevel = LogEventLevel.Warning;
|
||||
})
|
||||
.CreateLogger();
|
||||
}
|
||||
else
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Verbose()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.WriteTo.File(PathBuilder.File("storage", "logs", $"{DateTime.UtcNow:yyyy-MM-dd}.log"))
|
||||
.CreateLogger();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Information()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.CreateLogger();
|
||||
if (shouldUseSentry)
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Information()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.WriteTo.Sentry(options =>
|
||||
{
|
||||
options.MinimumBreadcrumbLevel = LogEventLevel.Information;
|
||||
options.MinimumEventLevel = LogEventLevel.Warning;
|
||||
})
|
||||
.WriteTo.File(PathBuilder.File("storage", "logs", $"{DateTime.UtcNow:yyyy-MM-dd}.log"))
|
||||
.CreateLogger();
|
||||
}
|
||||
else
|
||||
{
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Information()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(
|
||||
outputTemplate: "{Timestamp:HH:mm:ss} [{Level:u3}] {SourceContext} {Message:lj}{NewLine}{Exception}")
|
||||
.WriteTo.File(PathBuilder.File("storage", "logs", $"{DateTime.UtcNow:yyyy-MM-dd}.log"))
|
||||
.CreateLogger();
|
||||
}
|
||||
}
|
||||
|
||||
Logger.Info($"Working dir: {Directory.GetCurrentDirectory()}");
|
||||
@@ -66,13 +109,13 @@ namespace Moonlight
|
||||
var databaseCheckupService = new DatabaseCheckupService(configService);
|
||||
|
||||
await databaseCheckupService.Perform();
|
||||
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Switch to logging.net injection
|
||||
// TODO: Enable in production
|
||||
//builder.Logging.ClearProviders();
|
||||
//builder.Logging.AddProvider(new LogMigratorProvider());
|
||||
builder.Logging.ClearProviders();
|
||||
builder.Logging.AddProvider(new LogMigratorProvider());
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorPages();
|
||||
@@ -88,6 +131,23 @@ namespace Moonlight
|
||||
.AddCheck<DatabaseHealthCheck>("Database")
|
||||
.AddCheck<NodeHealthCheck>("Nodes")
|
||||
.AddCheck<DaemonHealthCheck>("Daemons");
|
||||
|
||||
// Sentry
|
||||
if (shouldUseSentry)
|
||||
{
|
||||
builder.WebHost.UseSentry(options =>
|
||||
{
|
||||
options.Dsn = configService
|
||||
.Get()
|
||||
.Moonlight.Sentry.Dsn;
|
||||
|
||||
options.Debug = configService.DebugMode;
|
||||
options.DiagnosticLevel = SentryLevel.Warning;
|
||||
options.TracesSampleRate = 1.0;
|
||||
|
||||
options.DiagnosticLogger = new SentryDiagnosticsLogger(SentryLevel.Warning);
|
||||
});
|
||||
}
|
||||
|
||||
// Databases
|
||||
builder.Services.AddDbContext<DataContext>();
|
||||
@@ -203,6 +263,12 @@ namespace Moonlight
|
||||
app.UseHsts();
|
||||
}
|
||||
|
||||
// Sentry
|
||||
if (shouldUseSentry)
|
||||
{
|
||||
app.UseSentryTracing();
|
||||
}
|
||||
|
||||
app.UseStaticFiles();
|
||||
app.UseRouting();
|
||||
app.UseWebSockets();
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div class="card card-flush w-lg-650px py-5">
|
||||
<div class="card-body py-15 py-lg-20">
|
||||
<div class="mb-14">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-40px">
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-40px">
|
||||
</div>
|
||||
<h1 class="fw-bolder text-gray-900 mb-5"><TL>Your account is banned from moonlight</TL></h1>
|
||||
<div class="fw-semibold fs-6 text-gray-500 mb-8">
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div class="card card-flush w-lg-650px py-5">
|
||||
<div class="card-body py-15 py-lg-20">
|
||||
<div class="mb-14">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-40px">
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-40px">
|
||||
</div>
|
||||
<h1 class="fw-bolder text-gray-900 mb-5"><TL>Your moonlight account is disabled</TL></h1>
|
||||
<div class="fw-semibold fs-6 text-gray-500 mb-8">
|
||||
|
||||
@@ -64,11 +64,20 @@
|
||||
|
||||
protected override async Task OnParametersSetAsync()
|
||||
{
|
||||
Uri uri = new Uri(await Access.GetLaunchUrl());
|
||||
|
||||
Host = uri.Host;
|
||||
Port = uri.Port;
|
||||
Username = uri.UserInfo.Split(':')[0];
|
||||
try
|
||||
{
|
||||
Uri uri = new Uri(await Access.GetLaunchUrl());
|
||||
|
||||
Host = uri.Host;
|
||||
Port = uri.Port;
|
||||
Username = uri.UserInfo.Split(':')[0];
|
||||
}
|
||||
catch (NotImplementedException)
|
||||
{
|
||||
Host = "N/A";
|
||||
Port = -1;
|
||||
Username = "N/A";
|
||||
}
|
||||
}
|
||||
|
||||
public async Task Show()
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item mt-2">
|
||||
<a class="nav-link text-active-primary ms-0 me-10 py-5 @(Index == 1 ? "active" : "")" href="/admin/system/logs">
|
||||
<TL>Logs</TL>
|
||||
<a class="nav-link text-active-primary ms-0 me-10 py-5 @(Index == 1 ? "active" : "")" href="/admin/system/sentry">
|
||||
<TL>Sentry</TL>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item mt-2">
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
|
||||
@{
|
||||
var marketingConfig = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Marketing");
|
||||
.Get()
|
||||
.Moonlight.Marketing;
|
||||
}
|
||||
|
||||
<div id="kt_app_footer" class="app-footer">
|
||||
<div class="app-container container-fluid d-flex flex-column flex-md-row flex-center flex-md-stack py-3">
|
||||
<div class="text-dark order-2 order-md-1">
|
||||
<span class="text-muted fw-semibold me-1">2022 - @DateTime.Now.Year©</span>
|
||||
<a href="@(marketingConfig.GetValue<string>("Website"))" target="_blank" class="text-gray-800 text-hover-primary">
|
||||
@(marketingConfig.GetValue<string>("BrandName"))
|
||||
<a href="@(marketingConfig.Website)" target="_blank" class="text-gray-800 text-hover-primary">
|
||||
@(marketingConfig.BrandName)
|
||||
</a>
|
||||
</div>
|
||||
<ul class="menu menu-gray-600 menu-hover-primary fw-semibold order-1">
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("About"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.About)" target="_blank" class="menu-link px-2">
|
||||
<TL>About us</TL>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("Imprint"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.Imprint)" target="_blank" class="menu-link px-2">
|
||||
<TL>Imprint</TL>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("Privacy"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.Privacy)" target="_blank" class="menu-link px-2">
|
||||
<TL>Privacy</TL>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div id="kt_app_header" class="app-header">
|
||||
<div class="app-container container-fluid d-flex align-items-stretch justify-content-between">
|
||||
@@ -15,7 +11,7 @@
|
||||
</div>
|
||||
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
|
||||
<a href="/" class="d-lg-none">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="h-30px"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="h-30px"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="d-flex align-items-stretch justify-content-between flex-lg-grow-1" id="kt_app_header_wrapper">
|
||||
|
||||
@@ -1,32 +1,28 @@
|
||||
@using Moonlight.App.Services.Sessions
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject IdentityService IdentityService
|
||||
@inject ConfigService ConfigService
|
||||
@inject ResourceService ResourceService
|
||||
@inject IJSRuntime JsRuntime
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
|
||||
<div id="kt_app_sidebar" class="app-sidebar flex-column" data-kt-drawer="true" data-kt-drawer-name="app-sidebar" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="225px" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_app_sidebar_mobile_toggle">
|
||||
<div class="app-sidebar-logo px-6" id="kt_app_sidebar_logo">
|
||||
<a href="@(User != null ? "/" : "/login")">
|
||||
@if (sidebar == "dark-sidebar")
|
||||
{
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-45px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-45px app-sidebar-logo-default"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sidebar == "light-sidebar")
|
||||
{
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="theme-light-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="theme-dark-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="theme-light-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="theme-dark-show h-20px app-sidebar-logo-default"/>
|
||||
}
|
||||
}
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="h-20px app-sidebar-logo-minimize"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="h-20px app-sidebar-logo-minimize"/>
|
||||
</a>
|
||||
|
||||
<div id="kt_app_sidebar_toggle" class="app-sidebar-toggle btn btn-icon btn-shadow btn-sm btn-color-muted btn-active-color-primary body-bg h-30px w-30px position-absolute top-50 start-100 translate-middle rotate" data-kt-toggle="true" data-kt-toggle-state="active" data-kt-toggle-target="body" data-kt-toggle-name="app-sidebar-minimize">
|
||||
@@ -38,7 +34,7 @@
|
||||
|
||||
<div class="app-sidebar-footer flex-column-auto pt-2 pb-6 px-6" id="kt_app_sidebar_footer">
|
||||
<a href="/support" class="btn btn-flex flex-center btn-custom btn-primary overflow-hidden text-nowrap px-0 h-40px w-100 btn-label">
|
||||
<TL>Open support</TL>
|
||||
<i class="bx bx-sm bx-support"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (!setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
@inherits LayoutComponentBase
|
||||
@using Moonlight.App.Extensions
|
||||
@inherits LayoutComponentBase
|
||||
@inject IJSRuntime JS
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
@@ -14,23 +15,23 @@ window.emptyBody = function(){
|
||||
{
|
||||
protected override void OnAfterRender(bool firstRender)
|
||||
{
|
||||
JS.InvokeVoidAsync("KTThemeMode.init");
|
||||
JS.InvokeVoidAsync("emptyBody");
|
||||
JS.InvokeVoidSafe("KTThemeMode.init");
|
||||
JS.InvokeVoidSafe("emptyBody");
|
||||
|
||||
if (firstRender)
|
||||
{
|
||||
JS.InvokeVoidAsync("scrollTo", 0, 0);
|
||||
JS.InvokeVoidAsync("KTDialer.init");
|
||||
JS.InvokeVoidAsync("KTDrawer.init");
|
||||
JS.InvokeVoidAsync("KTMenu.init");
|
||||
JS.InvokeVoidAsync("KTImageInput.init");
|
||||
JS.InvokeVoidAsync("KTPasswordMeter.init");
|
||||
JS.InvokeVoidAsync("KTScroll.init");
|
||||
JS.InvokeVoidAsync("KTScrolltop.init");
|
||||
JS.InvokeVoidAsync("KTSticky.init");
|
||||
JS.InvokeVoidAsync("KTSwapper.init");
|
||||
JS.InvokeVoidAsync("KTToggle.init");
|
||||
JS.InvokeVoidAsync("KTMenu.updateByLinkAttribute", $"/{NavigationManager.ToBaseRelativePath(NavigationManager.Uri)}");
|
||||
JS.InvokeVoidSafe("scrollTo", 0, 0);
|
||||
JS.InvokeVoidSafe("KTDialer.init");
|
||||
JS.InvokeVoidSafe("KTDrawer.init");
|
||||
JS.InvokeVoidSafe("KTMenu.init");
|
||||
JS.InvokeVoidSafe("KTImageInput.init");
|
||||
JS.InvokeVoidSafe("KTPasswordMeter.init");
|
||||
JS.InvokeVoidSafe("KTScroll.init");
|
||||
JS.InvokeVoidSafe("KTScrolltop.init");
|
||||
JS.InvokeVoidSafe("KTSticky.init");
|
||||
JS.InvokeVoidSafe("KTSwapper.init");
|
||||
JS.InvokeVoidSafe("KTToggle.init");
|
||||
JS.InvokeVoidSafe("KTMenu.updateByLinkAttribute", $"/{NavigationManager.ToBaseRelativePath(NavigationManager.Uri)}");
|
||||
}
|
||||
|
||||
JS.InvokeVoidAsync("KTLayoutSearch.init");
|
||||
@@ -45,30 +46,18 @@ window.emptyBody = function(){
|
||||
|
||||
private async void OnLocationChanged(object sender, LocationChangedEventArgs args)
|
||||
{
|
||||
await InvokeJsSave("scrollTo", 0, 0);
|
||||
await InvokeJsSave("KTDrawer.createInstances");
|
||||
await InvokeJsSave("KTMenu.createInstances");
|
||||
await InvokeJsSave("KTImageInput.createInstances");
|
||||
await InvokeJsSave("KTPasswordMeter.createInstances");
|
||||
await InvokeJsSave("KTScroll.createInstances");
|
||||
await InvokeJsSave("KTScrolltop.createInstances");
|
||||
await InvokeJsSave("KTSticky.createInstances");
|
||||
await InvokeJsSave("KTSwapper.createInstances");
|
||||
await InvokeJsSave("KTToggle.createInstances");
|
||||
await InvokeJsSave("KTMenu.updateByLinkAttribute", $"/{NavigationManager.ToBaseRelativePath(args.Location)}");
|
||||
await InvokeJsSave("KTAppSidebar.init");
|
||||
}
|
||||
|
||||
private async Task InvokeJsSave(string method, params object[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
await JS.InvokeVoidAsync(method, args);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
await JS.InvokeVoidSafeAsync("scrollTo", 0, 0);
|
||||
await JS.InvokeVoidSafeAsync("KTDrawer.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTMenu.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTImageInput.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTPasswordMeter.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTScroll.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTScrolltop.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTSticky.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTSwapper.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTToggle.createInstances");
|
||||
await JS.InvokeVoidSafeAsync("KTMenu.updateByLinkAttribute", $"/{NavigationManager.ToBaseRelativePath(args.Location)}");
|
||||
await JS.InvokeVoidSafeAsync("KTAppSidebar.init");
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -151,8 +151,8 @@
|
||||
await lazyLoader.SetText("Loading health check data");
|
||||
|
||||
var appUrl = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<string>("AppUrl");
|
||||
.Get()
|
||||
.Moonlight.AppUrl;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject NodeRepository NodeRepository
|
||||
@inject SmartTranslateService SmartTranslateService
|
||||
@inject ConfigService ConfigService
|
||||
@inject NavigationManager NavigationManager
|
||||
|
||||
@{
|
||||
var appUrl = ConfigService.GetSection("Moonlight").GetValue<string>("AppUrl");
|
||||
var appUrl = ConfigService.Get().Moonlight.AppUrl;
|
||||
}
|
||||
|
||||
<OnlyAdmin>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
@page "/admin/system/logs"
|
||||
|
||||
@using BlazorTable
|
||||
@using Moonlight.App.Models.Misc
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.Shared.Components.Navigations
|
||||
|
||||
@inject SmartTranslateService SmartTranslateService
|
||||
|
||||
<OnlyAdmin>
|
||||
<AdminSystemNavigation Index="1"/>
|
||||
</OnlyAdmin>
|
||||
|
||||
@code
|
||||
{
|
||||
private Task Load(LazyLoader arg)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
40
Moonlight/Shared/Views/Admin/Sys/Sentry.razor
Normal file
40
Moonlight/Shared/Views/Admin/Sys/Sentry.razor
Normal file
@@ -0,0 +1,40 @@
|
||||
@page "/admin/system/sentry"
|
||||
|
||||
@using Moonlight.Shared.Components.Navigations
|
||||
@using global::Sentry
|
||||
|
||||
<OnlyAdmin>
|
||||
<AdminSystemNavigation Index="1"/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xxl-6 my-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="card-title">
|
||||
<TL>Status</TL>
|
||||
</span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<span class="fs-5">
|
||||
@if (SentrySdk.IsEnabled)
|
||||
{
|
||||
<TL>Sentry is enabled</TL>
|
||||
}
|
||||
else
|
||||
{
|
||||
<TL>Sentry is disabled</TL>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</OnlyAdmin>
|
||||
|
||||
@code
|
||||
{
|
||||
private Task Load(LazyLoader arg)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
@@ -24,12 +24,11 @@
|
||||
@if (Subscription == null)
|
||||
{
|
||||
var config = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Subscriptions")
|
||||
.GetSection("Sellpass");
|
||||
.Get()
|
||||
.Moonlight.Subscriptions.SellPass;
|
||||
|
||||
var enableSellpass = config.GetValue<bool>("Enable");
|
||||
var url = config.GetValue<string>("Url");
|
||||
var enableSellpass = config.Enable;
|
||||
var url = config.Url;
|
||||
|
||||
<h3 class="mb-2">
|
||||
<div class="input-group mb-3">
|
||||
|
||||
@@ -14,171 +14,174 @@
|
||||
@inject IJSRuntime JsRuntime
|
||||
|
||||
<LazyLoader @ref="LazyLoader" Load="Load">
|
||||
<div class="mx-auto">
|
||||
<div class="card card-body">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="badge badge-primary badge-lg px-5 me-4">Beta</span>
|
||||
@if (EditMode)
|
||||
{
|
||||
<div>
|
||||
<WButton Text="@(SmartTranslateService.Translate("New group"))"
|
||||
WorkingText=""
|
||||
CssClasses="btn-primary me-3"
|
||||
OnClick="AddGroup">
|
||||
</WButton>
|
||||
<WButton Text="@(SmartTranslateService.Translate("Finish editing layout"))"
|
||||
CssClasses="btn-secondary"
|
||||
OnClick="async () => await SetEditMode(false)">
|
||||
</WButton>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<WButton Text="@(SmartTranslateService.Translate("Edit layout"))"
|
||||
CssClasses="btn-secondary"
|
||||
OnClick="async () => await SetEditMode(true)">
|
||||
</WButton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@foreach (var group in ServerGroups)
|
||||
{
|
||||
<div class="accordion my-3" id="serverListGroup@(group.GetHashCode())">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="serverListGroup-header@(group.GetHashCode())">
|
||||
<button class="accordion-button fs-4 fw-semibold collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#serverListGroup-body@(group.GetHashCode())" aria-expanded="false" aria-controls="serverListGroup-body@(group.GetHashCode())">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
@if (EditMode)
|
||||
{
|
||||
<input @bind="group.Name" class="form-control"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(group.Name))
|
||||
{
|
||||
<TL>Unsorted servers</TL>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span>@(group.Name)</span>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<div>
|
||||
@if (EditMode)
|
||||
{
|
||||
<WButton Text="@(SmartTranslateService.Translate("Remove group"))"
|
||||
WorkingText=""
|
||||
CssClasses="btn-danger"
|
||||
OnClick="async () => await RemoveGroup(group)">
|
||||
</WButton>
|
||||
}
|
||||
</div>
|
||||
<div class="mx-auto">
|
||||
<div class="card card-body">
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="badge badge-primary badge-lg px-5 me-4">Beta</span>
|
||||
@if (EditMode)
|
||||
{
|
||||
<div>
|
||||
<WButton Text="@(SmartTranslateService.Translate("New group"))"
|
||||
WorkingText=""
|
||||
CssClasses="btn-primary me-3"
|
||||
OnClick="AddGroup">
|
||||
</WButton>
|
||||
<WButton Text="@(SmartTranslateService.Translate("Finish editing layout"))"
|
||||
CssClasses="btn-secondary"
|
||||
OnClick="async () => await SetEditMode(false)">
|
||||
</WButton>
|
||||
</div>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="serverListGroup-body@(group.GetHashCode())" class="accordion-collapse collapse" aria-labelledby="serverListGroup-header@(group.GetHashCode())" data-bs-parent="#serverListGroup">
|
||||
<div class="accordion-body">
|
||||
<div class="row min-h-200px draggable-zone" ml-server-group="@(group.Name)">
|
||||
@foreach (var id in group.Servers)
|
||||
{
|
||||
var server = AllServers.First(x => x.Id.ToString() == id);
|
||||
|
||||
<div class="col-12 col-md-3 p-3 draggable" ml-server-id="@(server.Id)">
|
||||
@if (EditMode)
|
||||
}
|
||||
else
|
||||
{
|
||||
<WButton Text="@(SmartTranslateService.Translate("Edit layout"))"
|
||||
CssClasses="btn-secondary"
|
||||
OnClick="async () => await SetEditMode(true)">
|
||||
</WButton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@foreach (var group in ServerGroups)
|
||||
{
|
||||
<div class="accordion my-3" id="serverListGroup@(group.GetHashCode())">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="serverListGroup-header@(group.GetHashCode())">
|
||||
<button class="accordion-button fs-4 fw-semibold collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#serverListGroup-body@(group.GetHashCode())" aria-expanded="false" aria-controls="serverListGroup-body@(group.GetHashCode())">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
@if (EditMode)
|
||||
{
|
||||
<input @bind="group.Name" class="form-control"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string.IsNullOrEmpty(group.Name))
|
||||
{
|
||||
<TL>Unsorted servers</TL>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span>@(group.Name)</span>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<div>
|
||||
@if (EditMode)
|
||||
{
|
||||
<WButton Text="@(SmartTranslateService.Translate("Remove group"))"
|
||||
WorkingText=""
|
||||
CssClasses="btn-danger"
|
||||
OnClick="async () => await RemoveGroup(group)">
|
||||
</WButton>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="serverListGroup-body@(group.GetHashCode())" class="accordion-collapse collapse" aria-labelledby="serverListGroup-header@(group.GetHashCode())" data-bs-parent="#serverListGroup">
|
||||
<div class="accordion-body">
|
||||
<div class="row min-h-200px draggable-zone" ml-server-group="@(group.Name)">
|
||||
@foreach (var id in group.Servers)
|
||||
{
|
||||
<div class="card bg-secondary">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<span class="card-label">@(server.Name)</span>
|
||||
</div>
|
||||
<div class="card-toolbar">
|
||||
<a href="#" class="btn btn-icon btn-sm btn-hover-light-primary draggable-handle">
|
||||
<i class="bx bx-md bx-move"></i>
|
||||
var server = AllServers.FirstOrDefault(x => x.Id.ToString() == id);
|
||||
|
||||
if (server != null)
|
||||
{
|
||||
<div class="col-12 col-md-3 p-3 draggable" ml-server-id="@(server.Id)">
|
||||
@if (EditMode)
|
||||
{
|
||||
<div class="card bg-secondary">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<span class="card-label">@(server.Name)</span>
|
||||
</div>
|
||||
<div class="card-toolbar">
|
||||
<a href="#" class="btn btn-icon btn-sm btn-hover-light-primary draggable-handle">
|
||||
<i class="bx bx-md bx-move"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<TL>Hidden in edit mode</TL>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a class="invisible-a" href="/server/@(server.Uuid)">
|
||||
<div class="card bg-secondary">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<span class="card-label">@(server.Name)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<span class="card-text fs-6">
|
||||
@(Math.Round(server.Memory / 1024D, 2)) GB / @(Math.Round(server.Disk / 1024D, 2)) GB / @(server.Node.Name) <span class="text-gray-700">- @(server.Image.Name)</span>
|
||||
</span>
|
||||
<div class="card-text my-1 fs-6 fw-bold @(User.StreamerMode ? "blur" : "")">
|
||||
@(server.Node.Fqdn):@(server.MainAllocation.Port)
|
||||
</div>
|
||||
<div class="card-text fs-6">
|
||||
@if (StatusCache.ContainsKey(server))
|
||||
{
|
||||
var status = StatusCache[server];
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case "offline":
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
case "stopping":
|
||||
<span class="text-warning">
|
||||
<TL>Stopping</TL>
|
||||
</span>
|
||||
break;
|
||||
case "starting":
|
||||
<span class="text-warning">
|
||||
<TL>Starting</TL>
|
||||
</span>
|
||||
break;
|
||||
case "running":
|
||||
<span class="text-success">
|
||||
<TL>Running</TL>
|
||||
</span>
|
||||
break;
|
||||
case "failed":
|
||||
<span class="text-gray-400">
|
||||
<TL>Failed</TL>
|
||||
</span>
|
||||
break;
|
||||
default:
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="text-gray-400">
|
||||
<TL>Loading</TL>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<TL>Hidden in edit mode</TL>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a class="invisible-a" href="/server/@(server.Uuid)">
|
||||
<div class="card bg-secondary">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<span class="card-label">@(server.Name)</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<span class="card-text fs-6">
|
||||
@(Math.Round(server.Memory / 1024D, 2)) GB / @(Math.Round(server.Disk / 1024D, 2)) GB / @(server.Node.Name) <span class="text-gray-700">- @(server.Image.Name)</span>
|
||||
</span>
|
||||
<div class="card-text my-1 fs-6 fw-bold @(User.StreamerMode ? "blur" : "")">
|
||||
@(server.Node.Fqdn):@(server.MainAllocation.Port)
|
||||
</div>
|
||||
<div class="card-text fs-6">
|
||||
@if (StatusCache.ContainsKey(server))
|
||||
{
|
||||
var status = StatusCache[server];
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case "offline":
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
case "stopping":
|
||||
<span class="text-warning">
|
||||
<TL>Stopping</TL>
|
||||
</span>
|
||||
break;
|
||||
case "starting":
|
||||
<span class="text-warning">
|
||||
<TL>Starting</TL>
|
||||
</span>
|
||||
break;
|
||||
case "running":
|
||||
<span class="text-success">
|
||||
<TL>Running</TL>
|
||||
</span>
|
||||
break;
|
||||
case "failed":
|
||||
<span class="text-gray-400">
|
||||
<TL>Failed</TL>
|
||||
</span>
|
||||
break;
|
||||
default:
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="text-gray-400">
|
||||
<TL>Loading</TL>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</LazyLoader>
|
||||
|
||||
@code
|
||||
@@ -352,206 +355,4 @@
|
||||
InvokeAsync(StateHasChanged);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@*
|
||||
@if (AllServers.Any())
|
||||
{
|
||||
if (UseSortedServerView)
|
||||
{
|
||||
var groupedServers = AllServers
|
||||
.OrderBy(x => x.Name)
|
||||
.GroupBy(x => x.Image.Name);
|
||||
|
||||
foreach (var groupedServer in groupedServers)
|
||||
{
|
||||
<div class="separator separator-content my-15">@(groupedServer.Key)</div>
|
||||
<div class="card card-body bg-secondary py-0 my-0 mx-0 px-0">
|
||||
@foreach (var server in groupedServer)
|
||||
{
|
||||
<div class="row mx-4 my-4">
|
||||
<a class="card card-body" href="/server/@(server.Uuid)">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="symbol symbol-50px me-3">
|
||||
<i class="bx bx-md bx-server"></i>
|
||||
</div>
|
||||
<div class="d-flex justify-content-start flex-column">
|
||||
<a href="/server/@(server.Uuid)" class="text-gray-800 text-hover-primary mb-1 fs-5">
|
||||
@(server.Name)
|
||||
</a>
|
||||
<span class="text-gray-400 fw-semibold d-block fs-6">
|
||||
@(Math.Round(server.Memory / 1024D, 2)) GB / @(Math.Round(server.Disk / 1024D, 2)) GB / @(server.Node.Name) <span class="text-gray-700">- @(server.Image.Name)</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-none d-sm-block col my-auto fs-6">
|
||||
@(server.Node.Fqdn):@(server.MainAllocation.Port)
|
||||
</div>
|
||||
<div class="d-none d-sm-block col my-auto fs-6">
|
||||
@if (StatusCache.ContainsKey(server))
|
||||
{
|
||||
var status = StatusCache[server];
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case "offline":
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
case "stopping":
|
||||
<span class="text-warning">
|
||||
<TL>Stopping</TL>
|
||||
</span>
|
||||
break;
|
||||
case "starting":
|
||||
<span class="text-warning">
|
||||
<TL>Starting</TL>
|
||||
</span>
|
||||
break;
|
||||
case "running":
|
||||
<span class="text-success">
|
||||
<TL>Running</TL>
|
||||
</span>
|
||||
break;
|
||||
case "failed":
|
||||
<span class="text-gray-400">
|
||||
<TL>Failed</TL>
|
||||
</span>
|
||||
break;
|
||||
default:
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="text-gray-400">
|
||||
<TL>Loading</TL>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var server in AllServers)
|
||||
{
|
||||
<div class="row px-5 mb-5">
|
||||
<a class="card card-body" href="/server/@(server.Uuid)">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="symbol symbol-50px me-3">
|
||||
<i class="bx bx-md bx-server"></i>
|
||||
</div>
|
||||
<div class="d-flex justify-content-start flex-column">
|
||||
<a href="/server/@(server.Uuid)" class="text-gray-800 text-hover-primary mb-1 fs-5">
|
||||
@(server.Name)
|
||||
</a>
|
||||
<span class="text-gray-400 fw-semibold d-block fs-6">
|
||||
@(Math.Round(server.Memory / 1024D, 2)) GB / @(Math.Round(server.Disk / 1024D, 2)) GB / @(server.Node.Name) <span class="text-gray-700">- @(server.Image.Name)</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-none d-sm-block col my-auto fs-6">
|
||||
@(server.Node.Fqdn):@(server.MainAllocation.Port)
|
||||
</div>
|
||||
<div class="d-none d-sm-block col my-auto fs-6">
|
||||
@if (StatusCache.ContainsKey(server))
|
||||
{
|
||||
var status = StatusCache[server];
|
||||
|
||||
switch (status)
|
||||
{
|
||||
case "offline":
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
case "stopping":
|
||||
<span class="text-warning">
|
||||
<TL>Stopping</TL>
|
||||
</span>
|
||||
break;
|
||||
case "starting":
|
||||
<span class="text-warning">
|
||||
<TL>Starting</TL>
|
||||
</span>
|
||||
break;
|
||||
case "running":
|
||||
<span class="text-success">
|
||||
<TL>Running</TL>
|
||||
</span>
|
||||
break;
|
||||
case "failed":
|
||||
<span class="text-gray-400">
|
||||
<TL>Failed</TL>
|
||||
</span>
|
||||
break;
|
||||
default:
|
||||
<span class="text-danger">
|
||||
<TL>Offline</TL>
|
||||
</span>
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="text-gray-400">
|
||||
<TL>Loading</TL>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="alert bg-info d-flex flex-column flex-sm-row w-100 p-5">
|
||||
<div class="d-flex flex-column pe-0 pe-sm-10">
|
||||
<h4 class="fw-semibold">
|
||||
<TL>You have no servers</TL>
|
||||
</h4>
|
||||
<span>
|
||||
<TL>We were not able to find any servers associated with your account</TL>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="row mt-7 px-3">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">
|
||||
<span class="badge badge-primary badge-lg">Beta</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<label class="col-lg-4 col-form-label fw-semibold fs-6">Sorted server view</label>
|
||||
<div class="col-lg-8 d-flex align-items-center">
|
||||
<div class="form-check form-check-solid form-switch form-check-custom fv-row">
|
||||
<input class="form-check-input w-45px h-30px" type="checkbox" id="sortedServerView" @bind="UseSortedServerView">
|
||||
<label class="form-check-label" for="sortedServerView"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
*@
|
||||
}
|
||||
@@ -1,97 +0,0 @@
|
||||
{
|
||||
"Moonlight": {
|
||||
"AppUrl": "http://your-moonlight-url.test",
|
||||
"Database": {
|
||||
"Database": "database_name",
|
||||
"Host": "your-moonlight-database-host.de",
|
||||
"Password": "s3cr3t",
|
||||
"Port": "10324",
|
||||
"Username": "user_name"
|
||||
},
|
||||
"DiscordBotApi": {
|
||||
"Enable": false,
|
||||
"Token": "you api key here"
|
||||
},
|
||||
"DiscordBot": {
|
||||
"Enable": false,
|
||||
"Token": "Discord.Token.Here",
|
||||
"PowerActions": false
|
||||
},
|
||||
"Domains": {
|
||||
"_comment": "Cloudflare Api Credentials",
|
||||
"AccountId": "Account Id here",
|
||||
"Email": "Cloudflare Email here",
|
||||
"Key": "Api Key Here"
|
||||
},
|
||||
"Html": {
|
||||
"Headers": {
|
||||
"Color": "#4b27e8",
|
||||
"Description": "the next generation hosting panel",
|
||||
"Keywords": "moonlight",
|
||||
"Title": "Moonlight - moonlight.tld"
|
||||
}
|
||||
},
|
||||
"Marketing": {
|
||||
"BrandName": "My cool project",
|
||||
"Imprint": "https://mycoolproject.de/imprint",
|
||||
"Privacy": "https://mycoolproject.de/privacy",
|
||||
"Website": "https://mycoolproject.de/"
|
||||
},
|
||||
"OAuth2": {
|
||||
"_exampleProviders": [
|
||||
{
|
||||
"Id": "discord",
|
||||
"ClientId": "",
|
||||
"ClientSecret": ""
|
||||
},
|
||||
{
|
||||
"Id": "google",
|
||||
"ClientId": "",
|
||||
"ClientSecret": ""
|
||||
}
|
||||
],
|
||||
"Providers": [],
|
||||
"EnableOverrideUrl": false,
|
||||
"OverrideUrl": "http://your-moonlight-url.test"
|
||||
},
|
||||
"Security": {
|
||||
"Token": "RANDOM UUID HERE"
|
||||
},
|
||||
"Mail": {
|
||||
"Email": "no-reply@mycoolproject.de",
|
||||
"Server": "mycoolproject.de",
|
||||
"Password": "s3cr3t",
|
||||
"Port": 465,
|
||||
"Ssl": true
|
||||
},
|
||||
"Cleanup": {
|
||||
"Cpu": 90,
|
||||
"Memory": 8192,
|
||||
"Wait": 15,
|
||||
"Uptime": 6,
|
||||
"Enable": false,
|
||||
"MinUptime": 10
|
||||
},
|
||||
"Subscriptions": {
|
||||
"_comment": "Not implemented",
|
||||
"SellPass": {
|
||||
"Enable": false,
|
||||
"Url": ""
|
||||
}
|
||||
},
|
||||
"DiscordNotifications": {
|
||||
"Enable": false,
|
||||
"WebHook": ""
|
||||
},
|
||||
"Statistics": {
|
||||
"Enabled": true,
|
||||
"Wait": 15
|
||||
},
|
||||
"Rating": {
|
||||
"Enabled": true,
|
||||
"Url": "link-to-google.page",
|
||||
"MinRating": 4,
|
||||
"DaysSince": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,94 +1,94 @@
|
||||
Open support;Support öffnen
|
||||
Open support;Support Öffnen
|
||||
About us;Über uns
|
||||
Imprint;Impressum
|
||||
Privacy;Datenschutz
|
||||
Login;Anmelden
|
||||
Privacy;Privacy
|
||||
Login;Einloggen
|
||||
Register;Registrieren
|
||||
Insert brand name...;Markenname einfügen...
|
||||
Save and continue;Speichern und fortfahren
|
||||
Saving;Speichere
|
||||
Configure basics;Grundlagen konfigurieren
|
||||
Brand name;Markenname
|
||||
test;Test
|
||||
Insert first name...;Vornamen einfügen...
|
||||
Insert last name...;Nachname einfügen...
|
||||
Insert email address...;E-Mail Adresse einfügen...
|
||||
Insert brand name...;Firmenname eingeben...
|
||||
Save and continue;Speichern und Fortfahren
|
||||
Saving;Speichern
|
||||
Configure basics;Grundlagen einstellen
|
||||
Brand name;Firmenname
|
||||
test;test
|
||||
Insert first name...;Vornamen eingeben...
|
||||
Insert last name...;Nachnamen eingeben...
|
||||
Insert email address...;E-Mail-Adresse eingeben...
|
||||
Add;Hinzufügen
|
||||
Adding...;Füge hinzu...
|
||||
Add admin accounts;Admin-Konten hinzufügen
|
||||
Adding...;Wird hinzugefügt...
|
||||
Add admin accounts;Admin Konto hinzufügen
|
||||
First name;Vorname
|
||||
Last name;Nachname
|
||||
Email address;Email-Adresse
|
||||
Enter password;Passwort eingeben
|
||||
Email address;E-Mail-Adresse
|
||||
Enter password;Password eingeben
|
||||
Next;Weiter
|
||||
Back;Zurück
|
||||
Configure features;Funktionen konfigurieren
|
||||
Support chat;Support-Chat
|
||||
Finish;Beenden
|
||||
Finalize installation;Installation abschließen
|
||||
Moonlight basic settings successfully configured;Moonlight Grundeinstellungen erfolgreich konfiguriert
|
||||
Ooops. This page is crashed;Ooops. Diese Seite ist abgestürzt
|
||||
This page is crashed. The error has been reported to the moonlight team. Meanwhile you can try reloading the page;Diese Seite ist abgestürzt. Der Fehler wurde an das Moonlight-Team gemeldet. In der Zwischenzeit kannst du versuchen, die Seite neu zu laden
|
||||
Configure features;Features konfigurieren
|
||||
Support chat;Chat Hilfe
|
||||
Finish;Fertigstellen
|
||||
Finalize installation;Installation Fertigstellen
|
||||
Moonlight basic settings successfully configured;Moonlight's Standard-Einstellungen wurden konfiguriert
|
||||
Ooops. This page is crashed;Ups. Die Seite ist abgestürzt.
|
||||
This page is crashed. The error has been reported to the moonlight team. Meanwhile you can try reloading the page;Diese Seite ist abgestürzt. Bitte versuche, sie neu zu laden.
|
||||
Setup complete;Einrichtung abgeschlossen
|
||||
It looks like this moonlight instance is ready to go;Es sieht so aus, als ob diese Moonlight-Instanz einsatzbereit ist
|
||||
It looks like this moonlight instance is ready to go;Diese Moonlight Instanz ist bereit
|
||||
User successfully created;Benutzer erfolgreich erstellt
|
||||
Ooops. Your moonlight client is crashed;Ups. Dein Moonlight-Client ist abgestürzt
|
||||
This error has been reported to the moonlight team;Dieser Fehler wurde an das Moonlight-Team gemeldet
|
||||
Ooops. Your moonlight client is crashed;Ups. Dein Moonlight ist abgestürzt.
|
||||
This error has been reported to the moonlight team;Dieser Fehler wurde dem Moonlight-Team mitgeteilt
|
||||
Sign In;Anmelden
|
||||
Sign in to start with moonlight;Anmelden, um mit moonlight zu starten
|
||||
Sign in with Discord;Mit Discord anmelden
|
||||
Sign in to start with moonlight;Anmelden, um mit Moonlight zu starten
|
||||
Sign in with Discord;Mit Discord Anmelden
|
||||
Or with email;Oder mit E-Mail
|
||||
Forgot password?;Passwort vergessen?
|
||||
Forgot password?;Password vergessen?
|
||||
Sign-in;Anmelden
|
||||
Not registered yet?;Noch nicht registriert?
|
||||
Sign up;Anmelden
|
||||
Authenticating;Authentifiziere
|
||||
Sign in with Google;Mit Google anmelden
|
||||
Working;Läuft
|
||||
Not registered yet?;Noch nicht Registriert?
|
||||
Sign up;Registrieren
|
||||
Authenticating;Authentifizieren...
|
||||
Sign in with Google;Mit Google Anmelden
|
||||
Working;Bitte warten...
|
||||
Error;Fehler
|
||||
Email and password combination not found;E-Mail- und Passwortkombination nicht gefunden
|
||||
Email;E-Mail
|
||||
Password;Passwort
|
||||
Account settings;Kontoeinstellungen
|
||||
Email and password combination not found;E-Mail und Password-Kombination wurden nicht gefunden
|
||||
Email;E-mail
|
||||
Password;Password
|
||||
Account settings;Benutzer-Einstellungen
|
||||
Logout;Abmelden
|
||||
Dashboard;Dashboard
|
||||
Order;Bestellung
|
||||
Order;Bestellen
|
||||
Website;Website
|
||||
Database;Datenbank
|
||||
Domain;Domain
|
||||
Servers;Server
|
||||
Websites;Webseiten
|
||||
Websites;Websiten
|
||||
Databases;Datenbanken
|
||||
Domains;Domains
|
||||
Changelog;Changelog
|
||||
Changelog;Anderungen
|
||||
Firstname;Vorname
|
||||
Lastname;Nachname
|
||||
Repeat password;Passwort wiederholen
|
||||
Repeat password;Password wiederholen
|
||||
Sign Up;Anmelden
|
||||
Sign up to start with moonlight;Anmelden, um mit Moonlight zu beginnen
|
||||
Sign up with Discord;Mit Discord anmelden
|
||||
Sign up with Google;Mit Google anmelden
|
||||
Sign-up;Anmelden
|
||||
Already registered?;Bereits registriert?
|
||||
Sign in;Anmelden
|
||||
Create something new;Etwas Neues erstellen
|
||||
Sign up to start with moonlight;Registrieren um mit Moonlight zu starten
|
||||
Sign up with Discord;Mit Discord Registrieren
|
||||
Sign up with Google;Mit Google Registrieren
|
||||
Sign-up;Registrieren
|
||||
Already registered?;Schon Registriert?
|
||||
Sign in;Registrieren
|
||||
Create something new;Etwas neues erstellen
|
||||
Create a gameserver;Einen Gameserver erstellen
|
||||
A new gameserver in just a few minutes;Ein neuer Gameserver in nur wenigen Minuten
|
||||
Create a database;Erstelle eine Datenbank
|
||||
A quick way to store your data and manage it from all around the world;Ein schneller Weg, um deine Daten zu speichern und sie von überall auf der Welt zu verwalten
|
||||
Manage your services;Verwalte deine Services
|
||||
Manage your gameservers;Verwalte deine Gameserver
|
||||
A new gameserver in just a few minutes;Ein neuer Gameserver in wenigen Minuten
|
||||
Create a database;Eine Datenbank erstellen
|
||||
A quick way to store your data and manage it from all around the world;Eine schnelle Möglichkeit, um deine Daten von überall auf der Welt zu verwalten
|
||||
Manage your services;Deine Dienste verwalten
|
||||
Manage your gameservers;Gameserver verwalten
|
||||
Adjust your gameservers;Deine Gameserver anpassen
|
||||
Manage your databases;Verwalte deine Datenbanken
|
||||
Insert, delete and update the data in your databases;Einfügen, Löschen und Aktualisieren der Daten in deinen Datenbanken
|
||||
Manage your databases;Datenbanken verwalten
|
||||
Insert, delete and update the data in your databases;Daten in die Datenbank einfügen, entfernen und ändern
|
||||
Create a website;Eine Website erstellen
|
||||
Make your own websites with a webspace;Eigene Websites mit einem Webspace erstellen
|
||||
Make your own websites with a webspace;Mit einem Webspace eine Website erstellen
|
||||
Create a domain;Eine Domain erstellen
|
||||
Make your servvices accessible throught your own domain;Mache deine Services über deine eigene Domain zugänglich
|
||||
Manage your websites;Verwalte deine Webseiten
|
||||
Modify the content of your websites;Ändere den Inhalt deiner Websites
|
||||
Manage your domains;Verwalte deine Domains
|
||||
Add, edit and delete dns records;DNS-Einträge hinzufügen, bearbeiten und löschen
|
||||
Make your servvices accessible throught your own domain;Mache deine Dienste mit einer Domain erreichbar
|
||||
Manage your websites;Deine Websiten verwalten
|
||||
Modify the content of your websites;Den Inhalt deiner Websiten verwalten
|
||||
Manage your domains;Deine Domains verwalten
|
||||
Add, edit and delete dns records;DNS-Records hinzufügen, entfernen oder bearbeiten
|
||||
Admin;Admin
|
||||
System;System
|
||||
Overview;Übersicht
|
||||
@@ -98,72 +98,72 @@ Nodes;Nodes
|
||||
Images;Images
|
||||
aaPanel;aaPanel
|
||||
Users;Benutzer
|
||||
Support;Support
|
||||
Support;Hilfe
|
||||
Statistics;Statistiken
|
||||
No nodes found. Start with adding a new node;Keine Nodes gefunden. Beginne mit dem Hinzufügen einer neuen Node
|
||||
No nodes found. Start with adding a new node;Keine Nodes gefunden. Ein neues Node hinzufügen
|
||||
Nodename;Nodename
|
||||
FQDN;FQDN
|
||||
Create;Erstellen
|
||||
Creating;Erstelle
|
||||
Http port;Http-Port
|
||||
Sftp port;Sftp-Port
|
||||
Creating;Wird erstellt...
|
||||
Http port;Http Port
|
||||
Sftp port;Sftp Port
|
||||
Moonlight daemon port;Moonlight Daemon Port
|
||||
SSL;SSL
|
||||
CPU Usage;CPU-Auslastung
|
||||
CPU Usage;CPU Auslastung
|
||||
In %;In %
|
||||
Memory;Speicher
|
||||
Used / Available memory;Verwendeter / Verfügbarer Speicher
|
||||
Storage;Speicher
|
||||
Available storage;Verfügbarer Speicher
|
||||
Add a new node;Eine neue Node hinzufügen
|
||||
Memory;Arbeitsspeicher
|
||||
Used / Available memory;Benutzter / Verfügbarer Arbeitsspeicher
|
||||
Storage;Speicherplatz
|
||||
Available storage;Verfügbarer Speicherplatz
|
||||
Add a new node;Ein neues Node hinzufügen
|
||||
Delete;Löschen
|
||||
Deleting;Lösche
|
||||
Deleting;Wirt gelöscht...
|
||||
Edit;Bearbeiten
|
||||
Token Id;Token Id
|
||||
Token;Token
|
||||
Save;Speichern
|
||||
Setup;Einrichten
|
||||
Open a ssh connection to your node and enter;Öffne eine SSH-Verbindung zu deiner Node und gebe
|
||||
and paste the config below. Then press STRG+O and STRG+X to save;und füge die unten stehende Konfiguration ein. Drücke dann STRG+O und STRG+X, um zu speichern
|
||||
Before configuring this node, install the daemon;Bevor du diese Node konfigurierst, installiere den Daemon
|
||||
Delete this node?;Diese Node löschen?
|
||||
Do you really want to delete this node;Willst du diese Node wirklich löschen
|
||||
Setup;Aufsetzen
|
||||
Open a ssh connection to your node and enter;Eine SSH verbindung zum Node hinzufügen und öffnen
|
||||
and paste the config below. Then press STRG+O and STRG+X to save;und die Config darunter einfügern. Dann STRG+O und STRG+X um zu Speichern
|
||||
Before configuring this node, install the daemon;Installiere den Daemon bevor du dieses Node konfigurierst
|
||||
Delete this node?;Dieses Node löschen?
|
||||
Do you really want to delete this node;Möchtest du dieses Node wirklich löschen?
|
||||
Yes;Ja
|
||||
No;Nein
|
||||
Status;Status
|
||||
Adding;Füge hinzu
|
||||
Adding;Hinzufügen
|
||||
Port;Port
|
||||
Id;Id
|
||||
Manage;Verwalten
|
||||
Create new server;Neuen Server erstellen
|
||||
No servers found;Keine Server gefunden
|
||||
Server name;Servername
|
||||
Server name;Server Name
|
||||
Cpu cores;CPU Kerne
|
||||
Disk;Datenträger
|
||||
Disk;Speicherplatz
|
||||
Image;Image
|
||||
Override startup;Startup überschreiben
|
||||
Docker image;Docker-Image
|
||||
CPU Cores (100% = 1 Core);CPU-Kerne (100% = 1 Kern)
|
||||
Docker image;Docker Image
|
||||
CPU Cores (100% = 1 Core);CPU Kerne (100% = 1 Kern)
|
||||
Server successfully created;Server erfolgreich erstellt
|
||||
Name;Name
|
||||
Cores;CPU Kerne
|
||||
Owner;Eigentümer
|
||||
Cores;Kerne
|
||||
Owner;Besitzer
|
||||
Value;Wert
|
||||
An unknown error occured;Ein unbekannter Fehler ist aufgetreten
|
||||
No allocation found;Keine Allocation gefunden
|
||||
No allocation found;Keine Zuweisung gefunden
|
||||
Identifier;Identifier
|
||||
UuidIdentifier;UUIDIdentifier
|
||||
Override startup command;Startbefehl überschreiben
|
||||
Loading;Lade
|
||||
UuidIdentifier;UuidIdentifier
|
||||
Override startup command;Startup Befehl überschreiben
|
||||
Loading;Wird geladen...
|
||||
Offline;Offline
|
||||
Connecting;Verbinde
|
||||
Start;Starten
|
||||
Restart;Neustarten
|
||||
Connecting;Verbiden...
|
||||
Start;Start
|
||||
Restart;Neu Starten
|
||||
Stop;Stoppen
|
||||
Shared IP;Shared IP
|
||||
Server ID;Server-ID
|
||||
Cpu;Cpu
|
||||
Console;Konsole
|
||||
Shared IP;Geteilte IP
|
||||
Server ID;Server ID
|
||||
Cpu;CPU
|
||||
Console;Console
|
||||
Files;Dateien
|
||||
Backups;Backups
|
||||
Network;Netzwerk
|
||||
@@ -171,397 +171,466 @@ Plugins;Plugins
|
||||
Settings;Einstellungen
|
||||
Enter command;Befehl eingeben
|
||||
Execute;Ausführen
|
||||
Checking disk space;Prüfe Speicherplatz
|
||||
Updating config files;Aktualisiere Konfigurationsdateien
|
||||
Checking file permissions;Prüfe Dateiberechtigungen
|
||||
Downloading server image;Herunterladen des Serverabbilds
|
||||
Downloaded server image;Heruntergeladenes Serverabbild
|
||||
Starting;Starte
|
||||
Checking disk space;Speicherplatz überprüfen
|
||||
Updating config files;Konfigurations-Dateien werden geupdatet
|
||||
Checking file permissions;Datei-Rechte werden überprüft
|
||||
Downloading server image;Server Image wird heruntergeladen
|
||||
Downloaded server image;Server Image wurde heruntergeladen
|
||||
Starting;Startet
|
||||
Online;Online
|
||||
Kill;Killen
|
||||
Stopping;Stoppe
|
||||
Search files and folders;Dateien und Verzeichnisse durchsuchen
|
||||
Kill;Kill
|
||||
Stopping;Stoppt
|
||||
Search files and folders;Ordner und Dateien durchsuchen
|
||||
Launch WinSCP;WinSCP starten
|
||||
New folder;Neuer Ordner
|
||||
Upload;Hochladen
|
||||
File name;Dateiname
|
||||
File size;Dateigröße
|
||||
Last modified;Letzte Änderung
|
||||
File name;Datei-Name
|
||||
File size;Datei-Größe
|
||||
Last modified;Zuletz geändert
|
||||
Cancel;Abbrechen
|
||||
Canceling;Breche ab
|
||||
Running;Laufend
|
||||
Loading backups;Lade Backups
|
||||
Started backup creation;Backup-Erstellung gestartet
|
||||
Backup is going to be created;Backup wird erstellt
|
||||
Canceling;Wird Abbgebrochen
|
||||
Running;Läuft
|
||||
Loading backups;Backups werden geladen
|
||||
Started backup creation;Backup wird erstellt
|
||||
Backup is going to be created;Backup wird erstellt werden
|
||||
Rename;Umbenennen
|
||||
Move;Verschieben
|
||||
Move;Bewegen
|
||||
Archive;Archivieren
|
||||
Unarchive;Unarchivieren
|
||||
Unarchive;Archivieren rückgängig machen
|
||||
Download;Herunterladen
|
||||
Starting download;Starte Download
|
||||
Backup successfully created;Backup erfolgreich erstellt
|
||||
Starting download;Herunterladen wird gestartet
|
||||
Backup successfully created;Backup wurde erfolgreich erstellt
|
||||
Restore;Wiederherstellen
|
||||
Copy url;Url kopieren
|
||||
Backup deletion started;Backup-Löschung gestartet
|
||||
Backup successfully deleted;Backup erfolgreich gelöscht
|
||||
Primary;Primär
|
||||
This feature is currently not available;Diese Funktion ist derzeit nicht verfügbar
|
||||
Copy url;URL Kopieren
|
||||
Backup deletion started;Backup löschung wird gestartet
|
||||
Backup successfully deleted;Backup wurde erfolgreich gelöscht
|
||||
Primary;Primärer
|
||||
This feature is currently not available;Diese Funktion ist zur Zeit nicht verfügbar
|
||||
Send;Senden
|
||||
Sending;Sende
|
||||
Welcome to the support chat. Ask your question here and we will help you;Willkommen im Support-Chat. Stelle hier deine Frage und wir werden dir helfen
|
||||
minutes ago; vor Minuten
|
||||
just now;jetzt
|
||||
less than a minute ago;vor weniger als einer Minute
|
||||
1 hour ago;vor 1 Stunde
|
||||
1 minute ago;vor 1 Minute
|
||||
Sending;Wird gesendet
|
||||
Welcome to the support chat. Ask your question here and we will help you;Willkommen in der Chat Hilfe. Stelle hier deine Frage und wir helfen dir.
|
||||
minutes ago; Minuten
|
||||
just now;gerade eben
|
||||
less than a minute ago;weniger als eine Minute
|
||||
1 hour ago;vor einer Stunde
|
||||
1 minute ago;vor einer Minute
|
||||
Failed;Fehlgeschlagen
|
||||
hours ago; vor Stunden
|
||||
Open tickets;Offene Tickets
|
||||
hours ago; Stunden
|
||||
Open tickets;Tickets öffnen
|
||||
Actions;Aktionen
|
||||
No support ticket is currently open;Kein Supportticket ist zurzeit offen
|
||||
User information;Benutzerinformationen
|
||||
Close ticket;Anfrage schließen
|
||||
Closing;Schließe
|
||||
The support team has been notified. Please be patient;Das Support-Team wurde benachrichtigt. Bitte habe Geduld
|
||||
The ticket is now closed. Type a message to open it again;Das Ticket ist jetzt geschlossen. Gib eine Nachricht ein, um es wieder zu öffnen
|
||||
1 day ago;Vor 1 Tag
|
||||
is typing;tippt gerade
|
||||
are typing;tippen gerade
|
||||
No support ticket is currently open;Kein Support Ticket ist zurzeit offen.
|
||||
User information;Benutzer-Information
|
||||
Close ticket;Ticket schließen
|
||||
Closing;Wird geschlossen...
|
||||
The support team has been notified. Please be patient;Das Support-Team wurde benachrichtigt. Habe etwas gedult
|
||||
The ticket is now closed. Type a message to open it again;Das Ticket wurde geschlossen. Schreibe etwas, um es wieder zu öffnen
|
||||
1 day ago;vor einem Tag
|
||||
is typing;schreibt...
|
||||
are typing;schreiben
|
||||
No domains available;Keine Domains verfügbar
|
||||
Shared domains;Gemeinsame Domains
|
||||
Shared domain;Geteilte Domains
|
||||
Shared domain successfully deleted;Geteilte Domain erfolgreich gelöscht
|
||||
Shared domain successfully added;Geteilte Domain erfolgreich hinzugefügt
|
||||
Domain name;Domainname
|
||||
DNS records for;DNS-Einträge für
|
||||
Fetching dns records;Rufe DNS-Einträge ab
|
||||
No dns records found;Keine DNS-Einträge gefunden
|
||||
Shared domains;Geteilte Domains
|
||||
Shared domain;Geteilte Domain
|
||||
Shared domain successfully deleted;Geteilte Domain wurde erfolgreich gelöscht
|
||||
Shared domain successfully added;Geteilte Domain wurde erfolgreich hinzugefügt
|
||||
Domain name;Domain Name
|
||||
DNS records for;DNS-Record für
|
||||
Fetching dns records;Es wird nach DNS-Records gesucht
|
||||
No dns records found;Keine DNS-Records gefunden
|
||||
Content;Inhalt
|
||||
Priority;Priorität
|
||||
Ttl;TTL
|
||||
Enable cloudflare proxy;Cloudflare Proxy einschalten
|
||||
Ttl;Ttl
|
||||
Enable cloudflare proxy;Cloudflare-Proxy benutzen
|
||||
CF Proxy;CF Proxy
|
||||
days ago; Tage vergangen
|
||||
days ago; Tage
|
||||
Cancle;Abbrechen
|
||||
An unexpected error occured;Ein unerwarteter Fehler ist aufgetreten
|
||||
An unexpected error occured;Ein unbekannter Fehler ist aufgetreten
|
||||
Testy;Testy
|
||||
Error from cloudflare api;Fehler von der Cloudflare API
|
||||
Error from cloudflare api;Fehler von der Cloudflare-API
|
||||
Profile;Profil
|
||||
No subscription available;Kein Abonnement verfügbar
|
||||
No subscription available;Kein Abo verfügbar
|
||||
Buy;Kaufen
|
||||
Redirecting;Leite um
|
||||
Redirecting;Weiterleiten
|
||||
Apply;Anwenden
|
||||
Applying code;Code anwenden
|
||||
Invalid subscription code;Ungültiger Abo-Code
|
||||
Cancel Subscription;Abonnement kündigen
|
||||
Applying code;Code Anwenden
|
||||
Invalid subscription code;Unbekannter Abo-Code
|
||||
Cancel Subscription;Abo beenden
|
||||
Active until;Aktiv bis
|
||||
We will send you a notification upon subscription expiration;Wir senden dir eine Benachrichtigung, wenn dein Abonnement abläuft
|
||||
This token has been already used;Dieser Token wurde bereits verwendet
|
||||
We will send you a notification upon subscription expiration;Wenn dein Abo endet, senden wir dir eine E-Mail
|
||||
This token has been already used;Dieser Token wurde schon benutzt
|
||||
New login for;Neue Anmeldung für
|
||||
No records found for this day;Keine Daten für diesen Tag gefunden
|
||||
No records found for this day;Für diesen Tag wurden keine Records gefunden
|
||||
Change;Ändern
|
||||
Changing;Ändere
|
||||
Minecraft version;Minecraft-Version
|
||||
Build version;Build-Version
|
||||
Server installation is currently running;Serverinstallation läuft derzeit
|
||||
Changing;Wird geändert
|
||||
Minecraft version;Minecraft Version
|
||||
Build version;Build Version
|
||||
Server installation is currently running;Der Server wird installiert.
|
||||
Selected;Ausgewählt
|
||||
Move deleted;Verschiebe das Gelöschte
|
||||
Delete selected;Lösche das Ausgewählte
|
||||
Log level;Log-Stufe
|
||||
Log message;Logmeldung
|
||||
Move deleted;Gelöschtest Bewegen
|
||||
Delete selected;Ausgewähltes löschen
|
||||
Log level;Log Level
|
||||
Log message;Log Message
|
||||
Time;Zeit
|
||||
Version;Version
|
||||
You are running moonlight version;Du verwendest die Moonlight-Version
|
||||
You are running moonlight version;Du benutzt die Moonlight-Version
|
||||
Operating system;Betriebssystem
|
||||
Moonlight is running on;Moonlight läuft auf
|
||||
Memory usage;Speichernutzung
|
||||
Moonlight is using;Moonlight verwendet
|
||||
of memory;Speicherplatz
|
||||
Cpu usage;CPU Verbrauch
|
||||
Refresh;Aktualisieren
|
||||
Memory usage;Arbeitsspeicher-Auslastung
|
||||
Moonlight is using;Moonlight benutzt
|
||||
of memory;des Arbeitsspeichers
|
||||
Cpu usage;CPU Auslastung
|
||||
Refresh;Neu Laden
|
||||
Send a message to all users;Eine Nachricht an alle Benutzer senden
|
||||
IP;IP
|
||||
URL;URL
|
||||
Device;Gerät
|
||||
Change url;URL ändern
|
||||
Change url;URL Ändern
|
||||
Message;Nachricht
|
||||
Enter message;Nachricht eingeben
|
||||
Enter the message to send;Zu sendende Nachricht eingeben
|
||||
Enter the message to send;Eine Nachricht zum senden eingeben
|
||||
Confirm;Bestätigen
|
||||
Are you sure?;Bist du dir sicher?
|
||||
Are you sure?;Bist du dir sicher
|
||||
Enter url;URL eingeben
|
||||
An unknown error occured while starting backup deletion;Ein unbekannter Fehler ist beim Starten des Löschvorgangs des Backups aufgetreten
|
||||
Success;Erfolg
|
||||
Backup URL successfully copied to your clipboard;Backup-URL erfolgreich in die Zwischenablage kopiert
|
||||
Backup restore started;Wiederherstellung des Backups gestartet
|
||||
Backup successfully restored;Backup erfolgreich wiederhergestellt
|
||||
An unknown error occured while starting backup deletion;Ein unbekannter Fehler ist während der Backuplöschung aufgetreten
|
||||
Success;erfolgreich
|
||||
Backup URL successfully copied to your clipboard;Die Backup URL wurde in deine Zwischenablage kopiert
|
||||
Backup restore started;Backup wiederherstellung gestartet
|
||||
Backup successfully restored;Das Backup wurde erfolgreich wiedergeherstellt
|
||||
Register for;Registrieren für
|
||||
Core;Kern
|
||||
Logs;Logs
|
||||
AuditLog;AuditLog
|
||||
SecurityLog;Sicherheitslog
|
||||
ErrorLog;Fehlerlog
|
||||
Resources;Ressourcen
|
||||
WinSCP cannot be launched here;WinSCP kann hier nicht gestartet werden
|
||||
Create a new folder;Einen neuen Ordner erstellen
|
||||
Enter a name;Namen eingeben
|
||||
File upload complete;Datei-Upload abgeschlossen
|
||||
SecurityLog;SecurityLog
|
||||
ErrorLog;ErrorLog
|
||||
Resources;Resourcen
|
||||
WinSCP cannot be launched here;WinSCP kann nicht gestartet werden
|
||||
Create a new folder;Neuen Ordner erstellen
|
||||
Enter a name;Einen Namen eingeben
|
||||
File upload complete;Dateiupload abgeschlossen
|
||||
New server;Neuer Server
|
||||
Sessions;Sitzungen
|
||||
New user;Neuer Benutzer
|
||||
Created at;Erstellt am
|
||||
Mail template not found;Mailvorlage nicht gefunden
|
||||
Missing admin permissions. This attempt has been logged ;Fehlende Admin-Berechtigungen. Dieser Versuch wurde geloggt
|
||||
Address;Adresse
|
||||
Mail template not found;E-Mail template wurde nicht gefunden
|
||||
Missing admin permissions. This attempt has been logged ;Fehlende Admin-Rechte. Dieser Versuch wurde aufgezeichnet
|
||||
Address;Addresse
|
||||
City;Stadt
|
||||
State;Bundesland
|
||||
Country;Land
|
||||
State;Land
|
||||
Country;Staat
|
||||
Totp;Totp
|
||||
Discord;Discord
|
||||
Subscription;Abonnement
|
||||
None;Keine
|
||||
Subscription;Abonament
|
||||
None;None
|
||||
No user with this id found;Kein Benutzer mit dieser ID gefunden
|
||||
Back to list;Zurück zur Liste
|
||||
New domain;Neue Domain
|
||||
Reset password;Passwort zurücksetzen
|
||||
Password reset;Passwort zurücksetzen
|
||||
Reset the password of your account;Passwort für dein Konto zurücksetzen
|
||||
Back to list;Zurück zur liste
|
||||
New domain;Neue domain
|
||||
Reset password;Password wiederherstellen
|
||||
Password reset;Password wiederherstellung
|
||||
Reset the password of your account;Password deines Accounts zurücksetzen
|
||||
Wrong here?;Falsch hier?
|
||||
A user with this email can not be found;Ein Benutzer mit dieser E-Mail Adresse kann nicht gefunden werden
|
||||
Passwort reset successfull. Check your mail;Passwort zurücksetzen erfolgreich. Überprüfe deine Mails
|
||||
Discord bot;Discord-Bot
|
||||
A user with this email can not be found;Ein Benutzer mit dieser E-Mail konnte nicht gefunden werden
|
||||
Passwort reset successfull. Check your mail;Password wiederherstellung erfolgreich. Überprüfe deine Email
|
||||
Discord bot;Discord Bot
|
||||
New image;Neues Image
|
||||
Description;Beschreibung
|
||||
Uuid;UUID
|
||||
Enter tag name;Tag-Name eingeben
|
||||
Enter tag name;Tag Namen eingeben
|
||||
Remove;Entfernen
|
||||
No tags found;Keine Tags gefunden
|
||||
Enter docker image name;Name des Docker-Images eingeben
|
||||
Enter docker image name;Docker Image Namen eingeben
|
||||
Tags;Tags
|
||||
Docker images;Docker-Images
|
||||
Default image;Standardimage
|
||||
Startup command;Startup-Befehl
|
||||
Install container;Container installieren
|
||||
Install entry;Eintrag installieren
|
||||
Docker images;Docker Images
|
||||
Default image;Standard Image
|
||||
Startup command;Startup Befehl
|
||||
Install container;Install container
|
||||
Install entry;Install entry
|
||||
Configuration files;Konfigurationsdateien
|
||||
Startup detection;Startup-Erkennung
|
||||
Startup detection;Startuperkennung
|
||||
Stop command;Stopp-Befehl
|
||||
Successfully saved image;Image erfolgreich gespeichert
|
||||
Successfully saved image;Das Image wurde erfolgreich gespeichert
|
||||
No docker images found;Keine Docker Images gefunden
|
||||
Key;Schlüssel
|
||||
Default value;Standardwert
|
||||
Allocations;Allocations
|
||||
Allocations;Zuweisung
|
||||
No variables found;Keine Variablen gefunden
|
||||
Successfully added image;Image erfolgreich hinzugefügt
|
||||
Password change for;Passwortänderung für
|
||||
Successfully added image;Das Image wurde erfolgreich hinzugefügt
|
||||
Password change for;Password ändern für
|
||||
of;von
|
||||
New node;Neue Node
|
||||
Fqdn;FQDN
|
||||
Cores used;Verwendete CPU Kerne
|
||||
used;verwendet
|
||||
New node;Neues Node
|
||||
Fqdn;Fqdn
|
||||
Cores used;Kerne genutzt
|
||||
used;benutzt
|
||||
5.15.90.1-microsoft-standard-WSL2 - amd64;5.15.90.1-microsoft-standard-WSL2 - amd64
|
||||
Host system information;Host-System-Informationen
|
||||
Host system information;Host System Information
|
||||
0;0
|
||||
Docker containers running;Laufende Docker-Container
|
||||
Docker containers running;Laufende Docker Container
|
||||
details;Details
|
||||
1;1
|
||||
2;2
|
||||
DDos;DDos
|
||||
No ddos attacks found;Keine DDos-Angriffe gefunden
|
||||
No ddos attacks found;Keine DDoS gefunden
|
||||
Node;Node
|
||||
Date;Datum
|
||||
DDos attack started;DDos-Angriff gestartet
|
||||
DDos attack started;DDos Attacke gestartet
|
||||
packets;Pakete
|
||||
DDos attack stopped;DDos-Angriff gestoppt
|
||||
DDos attack stopped;DDos Attacke gestoppt
|
||||
packets; Pakete
|
||||
Stop all;Alle stoppen
|
||||
Kill all;Alle killen
|
||||
Network in;Netzwerk ein
|
||||
Network out;Netzwerk raus
|
||||
Kill all servers;Alle Server killen
|
||||
Do you really want to kill all running servers?;Willst du wirklich alle laufenden Server killen?
|
||||
Change power state for;Power State ändern für
|
||||
Stop all;Alle Stoppen
|
||||
Kill all;Allen Killen
|
||||
Network in;Network in
|
||||
Network out;Network out
|
||||
Kill all servers;Alle Server Killen
|
||||
Do you really want to kill all running servers?;Möchtest du wirklich alle laufenden Server Killen?
|
||||
Change power state for;Power-State ändern für
|
||||
to;zu
|
||||
Stop all servers;Alle Server stoppen
|
||||
Do you really want to stop all running servers?;Willst du wirklich alle laufenden Server stoppen?
|
||||
Do you really want to stop all running servers?;Möchtest du wirklich alle laufenden Server Killen?
|
||||
Manage ;Verwalten
|
||||
Manage user ;Benutzer verwalten
|
||||
Reloading;Lade neu
|
||||
Reloading;Neu Laden...
|
||||
Update;Aktualisieren
|
||||
Updating;Aktualisiere
|
||||
Updating;Wird Aktualisiert...
|
||||
Successfully updated user;Benutzer erfolgreich aktualisiert
|
||||
Discord id;Discord ID
|
||||
Discord username;Discord-Benutzername
|
||||
Discord discriminator;Discord-Diskriminator
|
||||
The Name field is required.;Das Feld Name ist erforderlich
|
||||
An error occured while logging you in;Beim Einloggen ist ein Fehler aufgetreten
|
||||
You need to enter an email address;Du musst eine E-Mail Adresse eingeben
|
||||
You need to enter a password;Du musst ein Passwort eingeben
|
||||
You need to enter a password with minimum 8 characters in lenght;Du musst ein Passwort mit einer länge von mindestens 8 Zeichen eingeben
|
||||
Proccessing;Bearbeite
|
||||
The FirstName field is required.;Das Feld Vorname ist erforderlich.
|
||||
The LastName field is required.;Das Feld Nachname ist erforderlich.
|
||||
The Address field is required.;Das Adressfeld ist erforderlich.
|
||||
The City field is required.;Das Feld Stadt ist erforderlich.
|
||||
The State field is required.;Das Feld Bundesland ist erforderlich.
|
||||
The Country field is required.;Das Feld Land ist erforderlich.
|
||||
Discord username;Discord Benutzername
|
||||
Discord discriminator;Discord Tag
|
||||
The Name field is required.;Der Name dieses Feldes ist erforderlich
|
||||
An error occured while logging you in;Ein Fehler ist aufgetreten, als du dich angemeldet hast
|
||||
You need to enter an email address;Du musst eine E-Mail-Adresse angeben
|
||||
You need to enter a password;Du musst ein Password eingeben
|
||||
You need to enter a password with minimum 8 characters in lenght;Du musst ein Password eingeben, das mindestens 8 Buchstaben lang ist
|
||||
Proccessing;Weid verarbeitet...
|
||||
The FirstName field is required.;Das Vorname-Feld ist erforderlich
|
||||
The LastName field is required.;Das Nachname-Feld ist erforderlich
|
||||
The Address field is required.;Das Address-Feld ist erforderlich
|
||||
The City field is required.;Das Stadt-Feld ist erforderlich
|
||||
The State field is required.;Das Staat-Feld ist erforderlich
|
||||
The Country field is required.;Das Land-Feld ist erforderlich
|
||||
Street and house number requered;Straße und Hausnummer erforderlich
|
||||
Max lenght reached;Maximale Länge erreicht
|
||||
Server;Server
|
||||
stopped;gestoppt
|
||||
Cleanups;Cleanups
|
||||
executed;ausgeführt
|
||||
Used clanup;Benutztes Cleanup
|
||||
Used clanup;Cleanup benutzt
|
||||
Enable;Aktivieren
|
||||
Disabble;Deaktivieren
|
||||
Disable;Deaktivieren
|
||||
Addons;Addons
|
||||
Addons;Add-ons
|
||||
Javascript version;Javascript Version
|
||||
Javascript file;Javascript-Datei
|
||||
Select javascript file to execute on start;Javascript-Datei zum Ausführen beim Start auswählen
|
||||
Submit;Absenden
|
||||
Processing;Verarbeite
|
||||
Go up;Nach oben
|
||||
Running cleanup;Laufende Cleanup Server
|
||||
servers;Server
|
||||
Select folder to move the file(s) to;Ordner auswählen, in den die Datei(en) verschoben werden sollen
|
||||
Paper version;Paperversion
|
||||
Javascript file;Javascript Datei
|
||||
Select javascript file to execute on start;Javascript Datei zum starten auswählen
|
||||
Submit;Einreichen
|
||||
Processing;Wird verarbeitet...
|
||||
Go up;Nach oben gehen
|
||||
Running cleanup;Cleanup läuft
|
||||
servers;Servers
|
||||
Select folder to move the file(s) to;Ordner zum Bewegen der Dateien auswählen
|
||||
Paper version;Paper Version
|
||||
Join2Start;Join2Start
|
||||
Server reset;Server zurücksetzen
|
||||
Reset;Zurücksetzen
|
||||
Resetting;Setze zurück
|
||||
Are you sure you want to reset this server?;Bist du dir sicher, dass du diesen Server zurücksetzen willst?
|
||||
Resetting;Wird zurückgesetzt
|
||||
Are you sure you want to reset this server?;Möchtest du diesen Server wirklich zurücksetzen?
|
||||
Are you sure? This cannot be undone;Bist du dir sicher? Dies kann nicht rückgängig gemacht werden
|
||||
Resetting server;Setze Server zurück
|
||||
Deleted file;Gelöschte Datei
|
||||
Reinstalling server;Installiere den Server neu
|
||||
Uploading files;Lade Dateien hoch
|
||||
Resetting server;Server wird zurückgesetzt...
|
||||
Deleted file;Datei gelöscht
|
||||
Reinstalling server;Server wird reinstalliert
|
||||
Uploading files;Dateien wurden hochgeladen
|
||||
complete;vollständig
|
||||
Upload complete;Upload vollständig
|
||||
Upload complete;Upload komplett
|
||||
Security;Sicherheit
|
||||
Subscriptions;Abonnements
|
||||
Subscriptions;Abonaments
|
||||
2fa Code;2FA Code
|
||||
Your account is secured with 2fa;Dein Konto ist mit 2FA gesichert
|
||||
anyone write a fancy text here?;Kann hier jemand einen netten Text schreiben? Ja sicher: Ich war hier. - Dannyx
|
||||
Activate 2fa;2FA aktivieren
|
||||
2fa apps;2FA Apps
|
||||
Your account is secured with 2fa;Dein Account wird mit 2-FA gesichert
|
||||
anyone write a fancy text here?;hier einen schönen Text schreiben?
|
||||
Activate 2fa;2-FA Aktivieren
|
||||
2fa apps;2-FA Apps
|
||||
Use an app like ;Benutze eine App wie
|
||||
or;oder
|
||||
and scan the following QR Code;und scanne den folgenden QR-Code
|
||||
If you have trouble using the QR Code, select manual input in the app and enter your email and the following code:;Wenn du Probleme bei der Verwendung des QR-Codes hast, wähle in der App manuelle Eingabe und gib deine E-Mail-Adresse und den folgenden Code ein:
|
||||
Finish activation;Aktivierung beenden
|
||||
2fa Code requiered;2FA-Code erforderlich
|
||||
New password;Neues Passwort
|
||||
Secure your account;Sichere dein Konto
|
||||
2fa adds another layer of security to your account. You have to enter a 6 digit code in order to login.;2FA fügt eine weitere Sicherheitsebene zu deinem Konto hinzu. Du musst dann noch einen 6-stelligen Code eingeben, um dich anzumelden.
|
||||
New subscription;Neues Abonnement
|
||||
and scan the following QR Code;und scanne diesen QR-Code
|
||||
If you have trouble using the QR Code, select manual input in the app and enter your email and the following code:;Wenn du Probleme mit dem Scannen des Qr-Codes has, benutze doch die Manuelle Eingabe der App und gib deine E-Mail und den folgenden Code ein:
|
||||
Finish activation;Aktivierung fertig
|
||||
2fa Code requiered;2-FA Code erforderlich
|
||||
New password;Neues Password
|
||||
Secure your account;Deinen Account sichern
|
||||
2fa adds another layer of security to your account. You have to enter a 6 digit code in order to login.;2-FA fügt eine weitere Sicherheits-Schicht hinzu. Du musst einen 6-Ziffern-Code eingeben, um dich anzumelden.
|
||||
New subscription;Neues Abonament
|
||||
You need to enter a name;Du musst einen Namen eingeben
|
||||
You need to enter a description;Du musst eine Beschreibung eingeben
|
||||
Add new limit;Neues Limit hinzufügen
|
||||
Create subscription;Abonnement erstellen
|
||||
You need to enter a description;Du musst eine Beschreibung eigeben
|
||||
Add new limit;Ein neues Limit hinzufügen
|
||||
Create subscription;Abonament erstellen
|
||||
Options;Optionen
|
||||
Amount;Betrag
|
||||
Do you really want to delete it?;Willst du es wirklich löschen?
|
||||
Loading your subscription;Abonnement laden
|
||||
Searching for deploy node;Suche nach einer Deploy Node
|
||||
Searching for available images;Suche nach verfügbaren Images
|
||||
Server details;Server-Details
|
||||
Configure your server;Konfiguriere deinen Server
|
||||
Default;Standard
|
||||
You reached the maximum amount of servers for every image of your subscription;Du hast die maximale Anzahl von Servern für jedes Image deines Abonnements erreicht
|
||||
Personal information;Persönliche Informationen
|
||||
Do you really want to delete it?;Möchtes du es wirklich löschen?
|
||||
Loading your subscription;Dein Abonament wird geladen
|
||||
Searching for deploy node;#Empty#
|
||||
Searching for available images;Nach verfügbaren Images wird gesucht
|
||||
Server details;Server Details
|
||||
Configure your server;Deinen Server konfigurieren
|
||||
Default;Standart
|
||||
You reached the maximum amount of servers for every image of your subscription;Du hast die maximale Anzahl an Images von deinem Abonament erreicht.
|
||||
Personal information;Prsönliche Informationen
|
||||
Enter code;Code eingeben
|
||||
Server rename;Server umbenennen
|
||||
Server rename;Server Umbenennen
|
||||
Create code;Code erstellen
|
||||
Save subscription;Abonnement speichern
|
||||
Enter your information;Gib deine Informationen ein
|
||||
You need to enter your full name in order to use moonlight;Du musst deinen vollständigen Namen eingeben, um Moonlight zu verwenden
|
||||
No node found;Keine Node gefunden
|
||||
No node found to deploy to found;Kein Node zum Deployen gefunden
|
||||
Save subscription;Abonament speichern
|
||||
Enter your information;Informationen eingeben
|
||||
You need to enter your full name in order to use moonlight;Du musst deinen ganzen Namen eingeben, um Moonlight zu nutzen
|
||||
No node found;Kein Node gefunden
|
||||
No node found to deploy to found;#Empty#
|
||||
Node offline;Node offline
|
||||
The node the server is running on is currently offline;Die Node, auf der der Server läuft, ist derzeit offline
|
||||
Server not found;Server nicht gefunden
|
||||
A server with that id cannot be found or you have no access for this server;Ein Server mit dieser ID kann nicht gefunden werden oder du hast keinen Zugriff auf diesen Server
|
||||
The node the server is running on is currently offline;Das Node, auf dem der Server grat läuft, ist offline
|
||||
Server not found;Server konnte nicht gefunden werden
|
||||
A server with that id cannot be found or you have no access for this server;Ein Server mit dieser ID konnte nicht gefunden werden
|
||||
Compress;Komprimieren
|
||||
Decompress;Dekomprimieren
|
||||
Moving;Verschieben
|
||||
Compressing;Komprimieren
|
||||
selected;ausgewählt
|
||||
Decompress;De-Komprimieren
|
||||
Moving;Bewegen...
|
||||
Compressing;Komprimieren...
|
||||
selected;Ausgewählt
|
||||
New website;Neue Website
|
||||
Plesk servers;Plesk-Server
|
||||
Base domain;Basisdomain
|
||||
Plesk server;Plesk-Server
|
||||
Plesk servers;Plesk Servers
|
||||
Base domain;Base Domain
|
||||
Plesk server;Plesk Server
|
||||
Ftp;FTP
|
||||
No SSL certificate found;Kein SSL-Zertifikat gefunden
|
||||
No SSL certificate found;Keine SSL-Zertifikate gefunden
|
||||
Ftp Host;FTP Host
|
||||
Ftp Port;FTP Port
|
||||
Ftp Username;FTP Benutzername
|
||||
Ftp Password;FTP Passwort
|
||||
Use;Verwenden
|
||||
SSL Certificates;SSL-Zertifikate
|
||||
SSL certificates;SSL-Zertifikate
|
||||
Issue certificate;Zertifikat ausstellen lassen
|
||||
New plesk server;Neuer Plesk-Server
|
||||
Api url;API-URL
|
||||
Host system offline;Hostsystem offline
|
||||
The host system the website is running on is currently offline;Das Hostsystem, auf dem die Website läuft, ist derzeit offline
|
||||
Ftp Username;FTP Username
|
||||
Ftp Password;FTP Password
|
||||
Use;Benutzen
|
||||
SSL Certificates;SSL Zertifikate
|
||||
SSL certificates;SSL Zertifikate
|
||||
Issue certificate;SSL-Zertifikat Ausgeben
|
||||
New plesk server;Neuer Plesk Server
|
||||
Api url;API URL
|
||||
Host system offline;Host System Offline
|
||||
The host system the website is running on is currently offline;Das Host System, auf dem diese Website läuft, ist offline
|
||||
No SSL certificates found;Keine SSL-Zertifikate gefunden
|
||||
No databases found for this website;Keine Datenbanken für diese Website gefunden
|
||||
The name should be at least 8 characters long;Der Name muss mindestens 8 Zeichen lang sein
|
||||
The name should only contain of lower case characters and numbers;Der Name darf nur aus Kleinbuchstaben und Zahlen bestehen
|
||||
Error from plesk;Fehler von Plesk
|
||||
No databases found for this website;Dieser Website konnten keine Datenbanken zugeordnet werden
|
||||
The name should be at least 8 characters long;Der Name sollte mindestens 8 Zeichen lang sein
|
||||
The name should only contain of lower case characters and numbers;Der Name sollte nur Kleinbuchstaben und Zahlen enthalten
|
||||
Error from plesk;Error von Plesk
|
||||
Host;Host
|
||||
Username;Benutzername
|
||||
SRV records cannot be updated thanks to the cloudflare api client. Please delete the record and create a new one;SRV-Einträge können aufgrund des Cloudflare-Api-Clients nicht aktualisiert werden. Bitte lösche den Eintrag und erstelle einen neuen
|
||||
The User field is required.;Das Feld Benutzer ist erforderlich
|
||||
You need to specify a owner;Du musst einen Besitzer angeben
|
||||
You need to specify a image;Du musst ein Image angeben
|
||||
SRV records cannot be updated thanks to the cloudflare api client. Please delete the record and create a new one;SRV Records können aufgrund von Cloudflare nicht geupdatet werden. Bitte lösche den Record und erstelle einen neuen.
|
||||
The User field is required.;Das Benutzer-Feld ist erforderlich
|
||||
You need to specify a owner;Du musst einen Server-Besitzer angeben
|
||||
You need to specify a image;You need to specify a image
|
||||
Api Url;API URL
|
||||
Api Key;API Key
|
||||
Api Key;Api Key
|
||||
Duration;Dauer
|
||||
Enter duration of subscription;Dauer des Abonnements eingeben
|
||||
Enter duration of subscription;Dauer des Abonaments eingeben
|
||||
Copied code to clipboard;Code in die Zwischenablage kopiert
|
||||
Invalid or expired subscription code;Ungültiger oder abgelaufener Abo-Code
|
||||
Current subscription;Aktuelles Abonnement
|
||||
You need to specify a server image;Du musst ein Server-Image angeben
|
||||
Invalid or expired subscription code;Ungültiger oder Abgelaufener Abo-Code
|
||||
Current subscription;Dein Abonament
|
||||
You need to specify a server image;Du musst ein Image angeben
|
||||
CPU;CPU
|
||||
Hour;Stunde
|
||||
Day;Tag
|
||||
Month;Monat
|
||||
Year;Jahr
|
||||
All time;Seit Beginn
|
||||
This function is not implemented;Diese Funktion ist nicht eingebaut
|
||||
Domain details;Domaindetails
|
||||
Configure your domain;Konfiguriere deine Domain
|
||||
You reached the maximum amount of domains in your subscription;Du hast die maximale Anzahl an Domains in deinem Abonnement erreicht
|
||||
You need to specify a shared domain;Du musst eine gemeinsame Domain angeben
|
||||
A domain with this name does already exist for this shared domain;Eine Domain mit diesem Namen existiert bereits für diese gemeinsame Domain
|
||||
The Email field is required.;Das Feld E-Mail ist erforderlich.
|
||||
The Password field is required.;Das Feld Passwort ist erforderlich.
|
||||
The ConfirmPassword field is required.;Das Feld Passwort bestätigen ist erforderlich.
|
||||
Passwords need to match;Passwörter müssen übereinstimmen
|
||||
Cleanup exception;Cleanup Ausnahme
|
||||
No shared domain found;Keine gemeinsame Domain gefunden
|
||||
Searching for deploy plesk server;Suche nach einem Deploy Plesk Server
|
||||
All time;Für immer
|
||||
This function is not implemented;Diese Funktion wurde noch nicht hinzugefügt
|
||||
Domain details;Domain Details
|
||||
Configure your domain;Deine Domain konfigurieren
|
||||
You reached the maximum amount of domains in your subscription;Du hast das Maximum an Domains in deinem Abonament erreicht
|
||||
You need to specify a shared domain;Du musst eine Shared-Domain angeben
|
||||
A domain with this name does already exist for this shared domain;Eine Domain mit diesem Name existiert bereits in dieser Shared-Domain
|
||||
The Email field is required.;Das E-Mail-Feld ist erforderlich
|
||||
The Password field is required.;Das Password-Feld ist erforderlich
|
||||
The ConfirmPassword field is required.;Das Password-Bestätigen-Feld ist erforderlich
|
||||
Passwords need to match;Die Passwörter müssen übereinstimmen
|
||||
Cleanup exception;Cleanup ausnahme
|
||||
No shared domain found;Keine Shared-Domain gefunden
|
||||
Searching for deploy plesk server;Suchen um den Plesk Server aufzusetzen
|
||||
No plesk server found;Kein Plesk Server gefunden
|
||||
No plesk server found to deploy to;Kein Plesk Server für die Bereitstellung gefunden
|
||||
No node found to deploy to;Keine Node für die Bereitstellung gefunden
|
||||
Website details;Webseiten-Details
|
||||
No plesk server found to deploy to;Keinen Plesk Server zum Aufsetzen gefunden
|
||||
No node found to deploy to;Kein Node zum Aufsetzen
|
||||
Website details;Website Details
|
||||
Configure your website;Konfiguriere deine Website
|
||||
The name cannot be longer that 32 characters;Der Name darf nicht länger als 32 Zeichen sein
|
||||
The name should only consist of lower case characters;Der Name darf nur aus Kleinbuchstaben bestehen
|
||||
The name cannot be longer that 32 characters;Der Name kann nicht länger als 32 Zeichen sein
|
||||
The name should only consist of lower case characters;Der Name sollte nur aus Kleinbuchstaben bestehen
|
||||
News;Neuigkeiten
|
||||
Title...;Titel...
|
||||
Enter text...;Text eingeben...
|
||||
Saving...;Speichere...
|
||||
Deleting...;Lösche...
|
||||
Delete post;Beitrag löschen
|
||||
Do you really want to delete the post ";Willst du den Beitrag wirklich löschen "
|
||||
Enter text...;Text einfügen...
|
||||
Saving...;Wird gespeichert...
|
||||
Deleting...;Wird gelöscht...
|
||||
Delete post;Post löschen
|
||||
Do you really want to delete the post ";Post löschen? "
|
||||
You have no domains;Du hast keine Domains
|
||||
We were not able to find any domains associated with your account;Wir konnten keine Domains finden, die mit deinem Konto verbunden sind
|
||||
We were not able to find any domains associated with your account;Wir haben keine Domains, die mit deinem Account verbunden sind, gefunden
|
||||
You have no websites;Du hast keine Websites
|
||||
We were not able to find any websites associated with your account;Wir konnten keine Webseiten finden, die mit deinem Konto verbunden sind
|
||||
We were not able to find any websites associated with your account;Wir haben keine Websiten, die mit deinem Account verbunden sind, gefunden
|
||||
Guest;Gast
|
||||
You need a domain;Du brauchst eine Domain
|
||||
You need a domain;Du brauchts eine Domain
|
||||
New post;Neuer Post
|
||||
New entry;Neuer Eintrag
|
||||
New entry;Neuer Eintrag
|
||||
You have no servers;Du hast keine Server
|
||||
We were not able to find any servers associated with your account;Wir haben keine Server, die mit deinem Account verbunden sind, gefunden
|
||||
Error creating server on wings;Fehler bei der Erstellung des Servers auf Wings
|
||||
An unknown error occured while restoring a backup;Ein unbekannter Fehler ist während der Backup-Wiederherstellung aufgetreten
|
||||
Error from daemon;Fehler vom Daemon
|
||||
End;Ende
|
||||
Cloud panel;Cloud Panel
|
||||
Cloud panels;Cloud Panels
|
||||
New cloud panel;Neues cloud Panel
|
||||
You need to enter an api key;Du musst einen API-Key eigeben
|
||||
Webspaces;Webspaces
|
||||
New webspace;Neuer Webspace
|
||||
The uploaded file should not be bigger than 100MB;DIe Datei sollte nicht größer als 100MB sein
|
||||
An unknown error occured while uploading a file;Ein unbekannter Fehler ist während dem Datei-Hochladen aufgetreten
|
||||
No databases found for this webspace;Keine Datenbanken für diesen Webspace gefunden
|
||||
Sftp;SFTP
|
||||
Sftp Host;Sftp Host
|
||||
Sftp Port;Sftp Port
|
||||
Sftp Username;Sftp Benutzername
|
||||
Sftp Password;Sftp Password
|
||||
Lets Encrypt certificate successfully issued;Lets Encrypt Zertifikat erfolgreich erstellt
|
||||
Add shared domain;Shared Domain Hinzufügen
|
||||
Webspace;Webspace
|
||||
You reached the maximum amount of websites in your subscription;Du hast das Maximum an Websiten in deinem Abonament erreicht
|
||||
Searching for deploy web host;Suchen um den Webhost aufzusetzen
|
||||
Webspace details;Webspace Details
|
||||
Web host;Web host
|
||||
Configure your webspaces;Konfiguriere deine Webspaces
|
||||
You reached the maximum amount of webspaces in your subscription;Du hast das Maximum an Webspaces in deinem Abonament erreicht
|
||||
Create a webspace;Einen Webspace erstellen
|
||||
Manage your webspaces;Deine Webspaces verwalten
|
||||
Modify the content of your webspaces;Den Inhalt deiner Webspaces verwalten
|
||||
Successfully updated password;Password erfolgreich geupdatet
|
||||
An unknown error occured while sending your message;Ein unbekannter Fehler ist während dem Senden von deiner Nachricht aufgetreten
|
||||
Open chats;Offene Chats
|
||||
No message sent yet;Keine Nachrichten gesendet
|
||||
Support ticket open;Support-Ticket geöffnet
|
||||
Support ticket closed;Support-Ticket geschlossen
|
||||
Your connection has been paused;Deine Verbindung wurde pausiert
|
||||
We paused your connection because of inactivity. The resume just focus the tab and wait a few seconds;Wir haben deine Verbindung aufgrund von inaktivität pausiert. Wechsle auf den Tab und warte ein paar Sekunden
|
||||
Failed to reconnect to the moonlight servers;Die Wiederverbindung zu den Moonlight-Servern ist gescheitert
|
||||
We were unable to reconnect to moonlight. Please refresh the page;Verbindung zu Moonlight fehlgeschlagen. Bitte aktualisiere die Seite
|
||||
Failed to reconnect to the moonlight servers. The connection has been rejected;Die Wiederverbindung zu den Moonlight-Servern ist fehlgeschlagen. Die Verbindung wurde abgelehnt
|
||||
We were unable to reconnect to moonlight. Most of the time this is caused by an update of moonlight. Please refresh the page;Verbindung zu Moonlight fehlgeschlagen. Meistens wird dies durch eine Aktualisierung von Moonlight verursacht. Bitte aktualisieren Sie die Seite
|
||||
Verifying token, loading user data;Token verifizieren, Benutzer-Daten laden
|
||||
Reload config;Konfiguration neu laden
|
||||
Successfully reloading configuration;Konfiguration wird neu geladen...
|
||||
Successfully reloaded configuration;Die Konfiguration wurde erfolgreich neu geladen
|
||||
Flows;Flows
|
||||
Add node;Node Hinzufügen
|
||||
Web system;Web System
|
||||
Servers with this image;Server mit diesem Image
|
||||
You need to specify a user;Du musst einen Benutzer angeben
|
||||
Import;Importieren
|
||||
Export;Exportieren
|
||||
Exporting;Wird exportiert
|
||||
Successfully imported image;Das Image wurde erfolgreich importiert.
|
||||
Forge version;Forge Version
|
||||
Fabric version;Fabric Version
|
||||
Fabric loader version;Fabric Loader Version
|
||||
Rate;Rate
|
||||
Hey, can i borrow you for a second?;Hey, kann ich dich mal kurz ausleihen?
|
||||
We want to improve our services and get a little bit of feedback how we are currently doing. Please leave us a rating;Da wir unsere Dienste ständig verbessern, möchten wir dich um Feedback bitten. Bitte Bewerte uns:
|
||||
Thanks for your rating;Danke für deine Bewertun
|
||||
It would be really kind of you rating us on a external platform as it will help our project very much;Es wäre wirklich nett, wenn du uns auf einer externen Plattform bewerten würdest, denn das würde unserem Projekt sehr helfen
|
||||
Close;Schließen
|
||||
Rating saved;Bewretung gespeichert
|
||||
Group;Gruppe
|
||||
Beta;Beta
|
||||
Create a new group;Eine neue Gruppe erstellen
|
||||
|
||||
Reference in New Issue
Block a user