Don't log api keys
This commit is contained in:
@@ -31,7 +31,19 @@ internal class Program
|
|||||||
builder.Services.AddMemoryCache(options =>
|
builder.Services.AddMemoryCache(options =>
|
||||||
{
|
{
|
||||||
//options.SizeLimit = 20000;
|
//options.SizeLimit = 20000;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// TODO workaround to not log api keys
|
||||||
|
builder.Logging.AddFilter((category, level) =>
|
||||||
|
{
|
||||||
|
// Prevent logging of HTTP request and response if the category is HttpClient
|
||||||
|
if (category.Contains("System.Net.Http.HttpClient"))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
builder.Services.AddHostedService<ArrSyncBackgroundService>();
|
builder.Services.AddHostedService<ArrSyncBackgroundService>();
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
umlautadaptarr:
|
umlautadaptarr:
|
||||||
build: .
|
build: https://github.com/PCJones/UmlautAdaptarr.git#master
|
||||||
|
image: umlautadaptarr
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- local
|
||||||
environment:
|
environment:
|
||||||
SONARR_HOST: "http://localhost:8989"
|
- PUID=${ENV_PUID}
|
||||||
SONARR_API_KEY: ""
|
- PGID=${ENV_PGID}
|
||||||
|
- TZ=${TIMEZONE}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
SONARR_HOST: "http://sonarr:8989"
|
||||||
|
SONARR_API_KEY: ${SONARR_API_KEY}
|
||||||
ports:
|
ports:
|
||||||
- "5005:5005"
|
- "5005:5005"
|
||||||
|
|||||||
Reference in New Issue
Block a user