2019-05-07 14:01:23 +01:00
|
|
|
using Yavsc.Models.Relationship;
|
|
|
|
|
|
2016-05-30 13:53:56 +02:00
|
|
|
namespace Yavsc
|
2016-05-17 18:22:18 +02:00
|
|
|
{
|
|
|
|
|
public class SiteSettings
|
|
|
|
|
{
|
2025-03-04 18:05:21 +00:00
|
|
|
public string Title { get; set; } = "Yavsc";
|
2026-09-04 19:03:08 +01:00
|
|
|
|
2025-03-04 18:05:21 +00:00
|
|
|
public string Slogan { get; set; } = "";
|
2025-07-09 13:16:01 +01:00
|
|
|
public string Banner { get; set; } = "";
|
2017-02-21 12:02:12 +01:00
|
|
|
|
2025-03-04 18:05:21 +00:00
|
|
|
public string StyleSheet { get; set; } = "site.css";
|
|
|
|
|
public string FavIcon { get; set; } = "favicon.ico";
|
|
|
|
|
public string Logo { get; set; } = "logo.png";
|
2016-05-29 22:35:45 +02:00
|
|
|
/// <summary>
|
2026-06-19 13:15:21 +01:00
|
|
|
/// Origins to allow via the CORS "default" policy.
|
|
|
|
|
/// Each entry must be a full origin (scheme + host [+ port]), e.g. "https://app.example.com".
|
2016-05-29 22:35:45 +02:00
|
|
|
/// </summary>
|
2026-06-19 13:15:21 +01:00
|
|
|
public IList<string> CorsAllowedOrigins { get; set; } = new List<string>
|
|
|
|
|
{
|
|
|
|
|
"https://localhost:5001"
|
|
|
|
|
};
|
|
|
|
|
|
2016-05-29 22:35:45 +02:00
|
|
|
/// <summary>
|
2025-09-07 17:43:13 +01:00
|
|
|
/// External Url
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
public string ExternalUrl { get; set; } = "http://lua.pschneider.fr";
|
|
|
|
|
/// <summary>
|
2026-09-04 19:03:08 +01:00
|
|
|
/// Base URL of the API fronting this site.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ApiUrl { get; set; } = "";
|
|
|
|
|
/// <summary>
|
2025-09-07 17:43:13 +01:00
|
|
|
/// Must be a fqdn.
|
2016-05-29 22:35:45 +02:00
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2025-03-04 18:05:21 +00:00
|
|
|
public string Authority { get; set; } = "lua.pschneider.fr";
|
2016-11-07 19:34:56 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Owner's email
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2025-03-04 18:05:21 +00:00
|
|
|
public StaticContact Owner { get; set; } = new StaticContact
|
|
|
|
|
{
|
|
|
|
|
EMail = "root@lua.pschneider.fr",
|
|
|
|
|
Name = "Root"
|
|
|
|
|
} ;
|
|
|
|
|
|
2016-11-07 19:34:56 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Administrator's email
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2025-03-04 18:05:21 +00:00
|
|
|
public StaticContact Admin { get; set; } = new StaticContact
|
|
|
|
|
{
|
|
|
|
|
EMail = "root@lua.pschneider.fr",
|
|
|
|
|
Name = "Root"
|
|
|
|
|
} ;
|
2017-07-03 20:30:00 +02:00
|
|
|
|
2025-03-04 18:05:21 +00:00
|
|
|
public string DataDir { get; set; } = "data";
|
2023-03-26 20:41:42 +01:00
|
|
|
public string Avatars { get; set; } = "avatars";
|
|
|
|
|
public long Quota { get; set; }
|
|
|
|
|
public string Blog { get; set; } = "blogs";
|
|
|
|
|
public string Bills { get; set; } = "bills";
|
2018-06-11 13:27:12 +02:00
|
|
|
public string GitRepository { get; set; } = "sources";
|
2016-05-17 18:22:18 +02:00
|
|
|
|
2025-03-04 18:05:21 +00:00
|
|
|
public string BusinessName { get; set; } = "Yavsc";
|
|
|
|
|
public string? Street { get; set; }
|
|
|
|
|
public string? PostalCode { get; set; }
|
|
|
|
|
public string? CountryCode { get; set; }
|
2017-05-30 23:42:04 +02:00
|
|
|
|
2025-03-04 18:05:21 +00:00
|
|
|
public string HomeViewName { get; set; } = "Home";
|
2016-11-07 19:34:56 +01:00
|
|
|
/// <summary>
|
2017-05-28 01:52:33 +02:00
|
|
|
/// Specifies the directory where should be
|
2016-11-07 19:34:56 +01:00
|
|
|
/// generated pdf files using pandoc
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>The temporary directory to use</returns>
|
2023-03-26 20:41:42 +01:00
|
|
|
public string TempDir { get; set; } = "temp";
|
2016-10-07 12:50:23 +02:00
|
|
|
|
2017-05-28 01:52:33 +02:00
|
|
|
|
2020-10-09 19:35:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Disk usage user list maximum length in memory
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
public int DUUserListLen { get; set; } = 256;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Default acl file name
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value></value>
|
|
|
|
|
public string AccessListFileName { get; set; } = ".access";
|
|
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
}
|
|
|
|
|
}
|