Don't log api keys
This commit is contained in:
@@ -33,6 +33,18 @@ internal class Program
|
||||
//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.AddHostedService<ArrSyncBackgroundService>();
|
||||
builder.Services.AddSingleton<TitleApiService>(); // TODO rename
|
||||
|
||||
@@ -1,9 +1,18 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
umlautadaptarr:
|
||||
build: .
|
||||
build: https://github.com/PCJones/UmlautAdaptarr.git#master
|
||||
image: umlautadaptarr
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- local
|
||||
environment:
|
||||
SONARR_HOST: "http://localhost:8989"
|
||||
SONARR_API_KEY: ""
|
||||
- PUID=${ENV_PUID}
|
||||
- PGID=${ENV_PGID}
|
||||
- TZ=${TIMEZONE}
|
||||
|
||||
environment:
|
||||
SONARR_HOST: "http://sonarr:8989"
|
||||
SONARR_API_KEY: ${SONARR_API_KEY}
|
||||
ports:
|
||||
- "5005:5005"
|
||||
|
||||
Reference in New Issue
Block a user