* test add queueing to file service * further adjustments to download queueing * add check for whether the request is still in the queue to CheckQueue * forcefully release slot if download didn't finish in 15s * actually cancel the delay task * add metrics and refactor some of the request queue service * refactor pathing * reuse httpclient * add queue request dto to requestfile, enqueue users immediately if a slot is available * change startup to include all controllers * update server pathing * update pathing, again * several adjustments to auth, banning, jwt server tokens, renaming, authorization * update api I guess * adjust automated banning of charaident and reg * generate jwt on servers for internal authentication * remove mvcextensions Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
		
			
				
	
	
		
			61 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
    "ConnectionStrings": {
 | 
						|
        "DefaultConnection": "Host=/var/run/postgresql;Port=5432;Database=mare;Username=mare;Keepalive=15;Minimum Pool Size=10;Maximum Pool Size=50;No Reset On Close=true;Max Auto Prepare=50;Enlist=false"
 | 
						|
    },
 | 
						|
    "Logging": {
 | 
						|
        "LogLevel": {
 | 
						|
            "Default": "Warning",
 | 
						|
            "Microsoft": "Warning",
 | 
						|
            "Microsoft.Hosting.Lifetime": "Information",
 | 
						|
            "MareSynchronosServer": "Information",
 | 
						|
            "MareSynchronosShared": "Information",
 | 
						|
            "System.IO": "Information"
 | 
						|
        },
 | 
						|
        "File": {
 | 
						|
            "BasePath": "logs",
 | 
						|
            "FileAccessMode": "KeepOpenAndAutoFlush",
 | 
						|
            "FileEncodingName": "utf-8",
 | 
						|
            "DateFormat": "yyyMMdd",
 | 
						|
            "MaxFileSize": 104857600,
 | 
						|
            "Files": [
 | 
						|
                {
 | 
						|
                    "Path": "<date:yyyy>/<date:MM>/<date:dd>/mare-<date:HH>-<counter:0000>.log"
 | 
						|
                }
 | 
						|
            ]
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "MareSynchronos": {
 | 
						|
        "DbContextPoolSize": 512,
 | 
						|
        "ShardName": "Main",
 | 
						|
        "MetricsPort": 6050,
 | 
						|
        "MainServerGrpcAddress": "",
 | 
						|
        "FailedAuthForTempBan": 5,
 | 
						|
        "TempBanDurationInMinutes": 5,
 | 
						|
        "Jwt": "teststringteststringteststringteststringteststringteststringteststringteststringteststringteststring",
 | 
						|
        "WhitelistedIps": [
 | 
						|
            ""
 | 
						|
        ],
 | 
						|
        "RedisConnectionString": "redis,password=secretredispassword",
 | 
						|
        "CdnFullUrl": "http://localhost:6200/",
 | 
						|
        "StaticFileServiceAddress": "http://mare-files:6205",
 | 
						|
        "MaxExistingGroupsByUser": 3,
 | 
						|
        "MaxJoinedGroupsByUser": 6,
 | 
						|
        "MaxGroupUserCount": 100,
 | 
						|
        "PurgeUnusedAccounts": false,
 | 
						|
        "PurgeUnusedAccountsPeriodInDays": 14
 | 
						|
    },
 | 
						|
    "AllowedHosts": "*",
 | 
						|
    "Kestrel": {
 | 
						|
        "Endpoints": {
 | 
						|
            "Http": {
 | 
						|
                "Url": "http://+:6000"
 | 
						|
            },
 | 
						|
            "Grpc": {
 | 
						|
                "Protocols": "Http2",
 | 
						|
                "Url": "http://+:6005"
 | 
						|
            }
 | 
						|
        }
 | 
						|
    },
 | 
						|
    "IpRateLimiting": {},
 | 
						|
    "IPRateLimitPolicies": {}
 | 
						|
} |