 9eb5967935
			
		
	
	9eb5967935
	
	
	
		
			
			* rework server responsibilities add remote configuration * start metrics only when compiled as not debug * add some more logging to discord bot * fixes of some casts * make metrics port configurable, minor fixes * add docker bullshit * md formatting * adjustments to docker stuff * fix docker json files, fix some stuff in discord bot, add /useradd for Discord bot * adjust docker configs and fix sharded.bat * fixes for logs, cache file provider repeat trying to open filestream Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.7 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",
 | |
|             "MareSynchronosStaticFilesServer": "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": "Files",
 | |
|         "MetricsPort": 6250,
 | |
|         "FileServerGrpcAddress": "",
 | |
|         "ForcedDeletionOfFilesAfterHours": -1,
 | |
|         "CacheSizeHardLimitInGiB": -1,
 | |
|         "UnusedFileRetentionPeriodInDays": 14,
 | |
|         "CacheDirectory": "/marecache/",
 | |
|         "RemoteCacheSourceUri": "",
 | |
|         "MainServerGrpcAddress": "http://mare-server:6005"
 | |
|     },
 | |
|     "AllowedHosts": "*",
 | |
|     "Kestrel": {
 | |
|         "Endpoints": {
 | |
|             "Http": {
 | |
|                 "Url": "http://+:6200"
 | |
|             },
 | |
|             "Grpc": {
 | |
|                 "Protocols": "Http2",
 | |
|                 "Url": "http://+:6205"
 | |
|             }
 | |
|         }
 | |
|     },
 | |
|     "IpRateLimiting": {},
 | |
|     "IPRateLimitPolicies": {}
 | |
| } |