mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-14 14:04:15 +01:00
add geoip service for file shard matching
This commit is contained in:
parent
c6d3ac1c51
commit
53e96d9318
10 changed files with 162 additions and 10 deletions
|
|
@ -10,6 +10,8 @@ public class MareConfigurationAuthBase : MareConfigurationBase
|
|||
public int TempBanDurationInMinutes { get; set; } = 5;
|
||||
[RemoteConfiguration]
|
||||
public List<string> WhitelistedIps { get; set; } = new();
|
||||
[RemoteConfiguration]
|
||||
public bool UseGeoIP { get; set; } = false;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
|
@ -19,6 +21,7 @@ public class MareConfigurationAuthBase : MareConfigurationBase
|
|||
sb.AppendLine($"{nameof(TempBanDurationInMinutes)} => {TempBanDurationInMinutes}");
|
||||
sb.AppendLine($"{nameof(Jwt)} => {Jwt}");
|
||||
sb.AppendLine($"{nameof(WhitelistedIps)} => {string.Join(", ", WhitelistedIps)}");
|
||||
sb.AppendLine($"{nameof(UseGeoIP)} => {UseGeoIP}");
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue