PostgreSqlOptions.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace Jellyfin.Server.Implementations.DatabaseConfiguration;
  3. /// <summary>
  4. /// Options specific to run jellyfin on a postgreSql database.
  5. /// </summary>
  6. public class PostgreSqlOptions
  7. {
  8. /// <summary>
  9. /// Gets or Sets the Port. Defaults to 5432.
  10. /// </summary>
  11. public required int Port { get; set; } = 5432;
  12. /// <summary>
  13. /// Gets or Sets the Server name.
  14. /// </summary>
  15. public required string ServerName { get; set; }
  16. /// <summary>
  17. /// Gets or Sets the username.
  18. /// </summary>
  19. public required string Username { get; set; }
  20. /// <summary>
  21. /// Gets or Sets the password.
  22. /// </summary>
  23. public required string Password { get; set; }
  24. /// <summary>
  25. /// Gets or Sets the database name. Defaults to "Jellyfin".
  26. /// </summary>
  27. public string DatabaseName { get; set; } = "Jellyfin";
  28. /// <summary>
  29. /// Gets or Sets the timeout in secounds before a running command is terminated. Defaults to 30.
  30. /// </summary>
  31. public int Timeout { get; set; } = 30;
  32. }