removes secrets as they are not required for this project
All checks were successful
PiwigoDirectorySync/pipeline/head This commit looks good
All checks were successful
PiwigoDirectorySync/pipeline/head This commit looks good
This commit is contained in:
parent
58206c9347
commit
f29cb9d373
@ -10,7 +10,6 @@ internal static class AppSettings
|
|||||||
.AddJsonFile("appsettings.json", true)
|
.AddJsonFile("appsettings.json", true)
|
||||||
.AddJsonFile(Path.Combine(Environment.CurrentDirectory, "appsettings.json"), true)
|
.AddJsonFile(Path.Combine(Environment.CurrentDirectory, "appsettings.json"), true)
|
||||||
.AddJsonFile("/etc/PiwigoDirectorySync/appsettings.json", true)
|
.AddJsonFile("/etc/PiwigoDirectorySync/appsettings.json", true)
|
||||||
.AddUserSecrets<Program>(true)
|
|
||||||
.AddEnvironmentVariables()
|
.AddEnvironmentVariables()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
<PublishSingleFile>true</PublishSingleFile>
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
<UserSecretsId>c68c0447-8c7d-4e88-bcc6-96a9853828c7</UserSecretsId>
|
<UserSecretsId>c68c0447-8c7d-4e88-bcc6-96a9853828c7</UserSecretsId>
|
||||||
|
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||||
|
<FileVersion>1.0.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -19,7 +21,6 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.10"/>
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.10"/>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" 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.Binder" Version="7.0.4" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0"/>
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0"/>
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0"/>
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0"/>
|
||||||
|
14
README.md
14
README.md
@ -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.
|
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
|
### Docker
|
||||||
|
|
||||||
Build the application and docker image for hosting using docker.
|
Build the application and docker image for hosting using docker.
|
||||||
|
Loading…
Reference in New Issue
Block a user