removes secrets as they are not required for this project
All checks were successful
PiwigoDirectorySync/pipeline/head This commit looks good

This commit is contained in:
Philipp Häfelfinger 2023-09-13 23:30:03 +02:00
parent 58206c9347
commit f29cb9d373
3 changed files with 2 additions and 16 deletions

View File

@ -10,7 +10,6 @@ internal static class AppSettings
.AddJsonFile("appsettings.json", true)
.AddJsonFile(Path.Combine(Environment.CurrentDirectory, "appsettings.json"), true)
.AddJsonFile("/etc/PiwigoDirectorySync/appsettings.json", true)
.AddUserSecrets<Program>(true)
.AddEnvironmentVariables()
.Build();

View File

@ -9,6 +9,8 @@
<PublishSingleFile>true</PublishSingleFile>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<UserSecretsId>c68c0447-8c7d-4e88-bcc6-96a9853828c7</UserSecretsId>
<AssemblyVersion>1.0.0</AssemblyVersion>
<FileVersion>1.0.0</FileVersion>
</PropertyGroup>
<ItemGroup>
@ -19,7 +21,6 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.10"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.10"/>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0"/>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0"/>

View File

@ -9,20 +9,6 @@ Each directory level gets created as album or sub album in piwigo.
In the root path you may just run the command ``dotnet tool restore`` to install all dotnet tools and extensions used in this project.
### Handle development secrets
To make sure no local development db configuration gets committed, we use the dotnet-user-secrets tool.
When you configure your environment for the first time and you do not like the default settings, use the following commands to set the secrets:
``
cd PiwigoDirectorySync
dotnet user-secrets set "Settings:DbProvider" "Sqlite"
dotnet user-secrets set "ConnectionStrings:Sqlite" "Data Source=.\piwigoSync.db"
``
You'll find your secrets under `~/.microsoft/usersecrets/c68c0447-8c7d-4e88-bcc6-96a9853828c7/secrets.json`
### Docker
Build the application and docker image for hosting using docker.