Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ There are a couple of ways to run this project depending on if you have a .NET I

### Environment Specific Steps

Local media uses SeaweedFS. With Docker Compose installed, run from the repo root:

```sh
docker compose up -d
```

The local bucket is created automatically at `http://localhost:8333`.
The development launch profiles supply local-only credentials.
Media persists across restarts; `docker compose down --volumes` deletes it.

- Create an `Umbraco.sqlite.db` file in the `./SgfDevs/umbraco/Data` directory
- Mac OS/Linux `mkdir -p ./SgfDevs/umbraco/Data && touch ./SgfDevs/umbraco/Data/Umbraco.sqlite.db`
- Windows `New-Item -ItemType Directory -Force -Path .\SgfDevs\umbraco\Data; New-Item -ItemType File -Force -Path .\SgfDevs\umbraco\Data\Umbraco.sqlite.db`
Expand All @@ -20,7 +30,7 @@ There are a couple of ways to run this project depending on if you have a .NET I
- Navigate to the SgfDevs project folder `cd SgfDevs`
- Use the `dotnet user-secrets` command to set your connection string
- `dotnet user-secrets set "ConnectionStrings:umbracoDbDSN" "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True;Default Timeout=60"`
- `dotnet run`
- `dotnet run --launch-profile Umbraco.Web.UI`
- Open the URL that's printed in the console in your browser

#### .NET IDE e.g. Rider or Visual Studio (Windows)
Expand Down

This file was deleted.

3 changes: 0 additions & 3 deletions SgfDevs.Tests/appsettings-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
},
{
"$ref": "appsettings-schema.Umbraco.StorageProviders.json#"
},
{
"$ref": "appsettings-schema.Umbraco.StorageProviders.AzureBlob.json#"
}
]
}
10 changes: 0 additions & 10 deletions SgfDevs/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@
.AddDeliveryApi()
.AddComposers();

var blobStorageKey = builder.Configuration["SGFDevs:AzureBlobStorageKey"];
if (!string.IsNullOrEmpty(blobStorageKey))
{
umbracoBuilder.AddAzureBlobMediaFileSystem(options =>
{
options.ConnectionString = $"DefaultEndpointsProtocol=https;AccountName=sgfdevs;AccountKey={blobStorageKey};EndpointSuffix=core.windows.net";
options.ContainerName = "website";
});
}

if (!string.IsNullOrEmpty(builder.Configuration["Umbraco:Storage:Cdn:Url"]))
{
umbracoBuilder.AddCdnMediaUrlProvider();
Expand Down
10 changes: 8 additions & 2 deletions SgfDevs/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development",
"AWS_ACCESS_KEY_ID": "sgf-dev-local",
"AWS_SECRET_ACCESS_KEY": "sgf-dev-local-password",
"AWS_SESSION_TOKEN": ""
}
},
"Umbraco.Web.UI": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development",
"AWS_ACCESS_KEY_ID": "sgf-dev-local",
"AWS_SECRET_ACCESS_KEY": "sgf-dev-local-password",
"AWS_SESSION_TOKEN": ""
},
"dotnetRunMessages": true,
"applicationUrl": "https://localhost:44307;http://localhost:10600"
Expand Down
4 changes: 3 additions & 1 deletion SgfDevs/SgfDevs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AF.Umbraco.S3.Media.Storage" Version="1.4.2" />
<PackageReference Include="AWSSDK.SecurityToken" Version="4.0.101.1" />
<PackageReference Include="AutoMapper" Version="16.2.0" />
<PackageReference Include="MailKit" Version="4.18.1" />
<PackageReference Include="Microsoft.OpenApi" Version="2.12.2" />
Expand All @@ -13,7 +15,7 @@
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.12" NoWarn="NU1510" />
<PackageReference Include="Umbraco.Cms" Version="18.2.0" />
<PackageReference Include="Umbraco.Cms.DevelopmentMode.Backoffice" Version="18.2.0" />
<PackageReference Include="Umbraco.StorageProviders.AzureBlob" Version="18.0.0" />
<PackageReference Include="Umbraco.StorageProviders" Version="18.0.0" />
<PackageReference Include="uSync" Version="18.1.5" />
<PackageReference Include="Skybrud.Umbraco.Redirects" Version="18.0.0-alpha001" />
</ItemGroup>
Expand Down
Loading
Loading