From 905d5a1f4281d59050315782ee7715e9008c9d5c Mon Sep 17 00:00:00 2001 From: Levi Zitting Date: Sun, 9 Aug 2026 13:44:23 -0500 Subject: [PATCH] chore: remove legacy hosting configuration --- .dockerignore | 3 -- .env.example | 18 ------------ ...er-compose.yml_ Compose Deployment.run.xml | 17 ----------- README.md | 6 ++-- SgfDevs.slnx | 3 -- SgfDevs/SgfDevs.csproj | 1 - caddy/Development/Caddyfile | 3 -- caddy/Production/Caddyfile | 7 ----- caddy/Staging/Caddyfile | 3 -- docker-compose.yml | 29 ------------------- launchSettings.json | 11 ------- scripts/.env.example | 4 --- scripts/backup.sh | 14 --------- scripts/init.sh | 13 --------- scripts/restore.sh | 10 ------- 15 files changed, 2 insertions(+), 140 deletions(-) delete mode 100644 .env.example delete mode 100644 .run/docker-compose.yml_ Compose Deployment.run.xml delete mode 100644 caddy/Development/Caddyfile delete mode 100644 caddy/Production/Caddyfile delete mode 100644 caddy/Staging/Caddyfile delete mode 100644 docker-compose.yml delete mode 100644 launchSettings.json delete mode 100644 scripts/.env.example delete mode 100755 scripts/backup.sh delete mode 100755 scripts/init.sh delete mode 100755 scripts/restore.sh diff --git a/.dockerignore b/.dockerignore index fdec4bea..c40500dc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -16,7 +16,6 @@ **/azds.yaml **/bin **/charts -**/docker-compose* **/Dockerfile* **/node_modules **/npm-debug.log @@ -29,5 +28,3 @@ SgfDevs.Tests SgfDevs.slnx SgfDevs/Umbraco/Logs SgfDevs/Umbraco/Data -caddy -scripts diff --git a/.env.example b/.env.example deleted file mode 100644 index 4ad62fba..00000000 --- a/.env.example +++ /dev/null @@ -1,18 +0,0 @@ -ASPNETCORE_ENVIRONMENT=Production -ConnectionStrings__umbracoDbDSN="Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True;Default Timeout=60" -SGFDevs__AzureBlobStorageKey= -SGFDevs__NewsletterEndpoint= -SGFDevs__NewsletterListId= -SGFDevs__Site__AnalyticsEnabled=false -SGFDevs__Site__SearchIndexingEnabled=false -Umbraco__CMS__Global__Smtp__From="Sgf Devs " -Umbraco__CMS__Global__Smtp__Host= -Umbraco__CMS__Global__Smtp__Port= -Umbraco__CMS__Global__Smtp__Username= -Umbraco__CMS__Global__Smtp__Password= -Umbraco__CMS__Global__Smtp__SecureSocketOptions=StartTls -Umbraco__Storage__Cdn__Url= -Sentry__Dsn= -CADDY_ENVIRONMENT=Development -HTTP_PORT=80 -HTTPS_PORT=443 diff --git a/.run/docker-compose.yml_ Compose Deployment.run.xml b/.run/docker-compose.yml_ Compose Deployment.run.xml deleted file mode 100644 index 41541a7e..00000000 --- a/.run/docker-compose.yml_ Compose Deployment.run.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - diff --git a/README.md b/README.md index 2a125cb8..dbe5b902 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![](https://pbs.twimg.com/profile_banners/2869149607/1567717351/1500x500) ## Prerequisites -- [.NET SDK 8.x](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) +- [.NET SDK 10.x](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) - [Node.js 18.x](https://nodejs.org/en/download/) ## Local Installation Instructions @@ -17,15 +17,13 @@ There are a couple of ways to run this project depending on if you have a .NET I - Windows `New-Item -ItemType Directory -Force -Path .\SgfDevs\umbraco\Data; New-Item -ItemType File -Force -Path .\SgfDevs\umbraco\Data\Umbraco.sqlite.db` #### CLI Tools -- Copy `.env.example` to `.env` - Navigate to the SgfDevs project folder `cd SgfDevs` -- User the `dotnet user-secrets` command to set your connection string +- 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` - Open the URL that's printed in the console in your browser #### .NET IDE e.g. Rider or Visual Studio (Windows) -- Copy `.env.example` to `.env` - Update your .NET User Secrets with a connection string - Most IDEs have a shortcut to navigate to this file - Reference `appsettings.json` for an example of the `ConnectionStrings` object diff --git a/SgfDevs.slnx b/SgfDevs.slnx index f6a9ea75..df8138b6 100644 --- a/SgfDevs.slnx +++ b/SgfDevs.slnx @@ -1,10 +1,7 @@ - - - diff --git a/SgfDevs/SgfDevs.csproj b/SgfDevs/SgfDevs.csproj index 96c9a385..5f6935d7 100644 --- a/SgfDevs/SgfDevs.csproj +++ b/SgfDevs/SgfDevs.csproj @@ -35,6 +35,5 @@ 07f9a230-462a-4700-abd3-ae6f73067aaf Linux - ..\docker-compose.dcproj diff --git a/caddy/Development/Caddyfile b/caddy/Development/Caddyfile deleted file mode 100644 index 053ef495..00000000 --- a/caddy/Development/Caddyfile +++ /dev/null @@ -1,3 +0,0 @@ -http://localhost { - reverse_proxy sgf-devs:8080 -} diff --git a/caddy/Production/Caddyfile b/caddy/Production/Caddyfile deleted file mode 100644 index 34a26d4d..00000000 --- a/caddy/Production/Caddyfile +++ /dev/null @@ -1,7 +0,0 @@ -http://www.sgf.dev { - reverse_proxy sgf-devs:8080 -} - -sgf.dev { - redir https://www.sgf.dev{uri} -} diff --git a/caddy/Staging/Caddyfile b/caddy/Staging/Caddyfile deleted file mode 100644 index 629dbf82..00000000 --- a/caddy/Staging/Caddyfile +++ /dev/null @@ -1,3 +0,0 @@ -https://staging.sgf.dev { - reverse_proxy sgf-devs:80 -} diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 49ac44f3..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,29 +0,0 @@ -services: - sgf-devs: - build: - context: ./ - dockerfile: ./Dockerfile - env_file: - - .env - volumes: - - './SgfDevs/umbraco/Data/Umbraco.sqlite.db:/usr/src/main/umbraco/Data/Umbraco.sqlite.db' - - 'media-cache:/usr/src/main/umbraco/TEMP/MediaCache' - - 'data-protection-keys:/home/app/.aspnet/DataProtection-Keys' - restart: unless-stopped - proxy: - image: caddy:2.11 - restart: always - ports: - - '${HTTP_PORT:-80}:80' - - '${HTTPS_PORT:-443}:443' - - '${HTTPS_PORT:-443}:443/udp' - volumes: - - './caddy/${CADDY_ENVIRONMENT:-Development}/Caddyfile:/etc/caddy/Caddyfile' - - caddy_data:/data - - caddy_config:/config - -volumes: - media-cache: - data-protection-keys: - caddy_data: - caddy_config: diff --git a/launchSettings.json b/launchSettings.json deleted file mode 100644 index e87f7897..00000000 --- a/launchSettings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "profiles": { - "Docker Compose": { - "commandName": "DockerCompose", - "commandVersion": "1.0", - "serviceActions": { - "sgfdevs": "StartDebugging" - } - } - } -} \ No newline at end of file diff --git a/scripts/.env.example b/scripts/.env.example deleted file mode 100644 index 354ecf90..00000000 --- a/scripts/.env.example +++ /dev/null @@ -1,4 +0,0 @@ -AWS_ACCESS_KEY_ID="" -AWS_SECRET_ACCESS_KEY="" -RESTIC_REPOSITORY_PREFIX="" -RESTIC_PASSWORD="" diff --git a/scripts/backup.sh b/scripts/backup.sh deleted file mode 100755 index 17ae96e8..00000000 --- a/scripts/backup.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# Get the directory the script resides in, navigate their, and load env variables -__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd $__dir -export $(cat .env | xargs) - - -cd .. - -restic -r $RESTIC_REPOSITORY_PREFIX/sgf.dev backup \ - ./.env \ - ./SgfDevs/umbraco/Data/Umbraco.sqlite.db - diff --git a/scripts/init.sh b/scripts/init.sh deleted file mode 100755 index c3b0f046..00000000 --- a/scripts/init.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Get the directory the script resides in, navigate their, and load env variables -__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -echo $__dir -cd $__dir -export $(cat .env | xargs) - -cd .. - -restic -r $RESTIC_REPOSITORY_PREFIX/sgf.dev init - -(crontab -l 2>/dev/null; echo "0 6 * * * /home/ubuntu/sgf/dev/scripts/backup.sh") | crontab - diff --git a/scripts/restore.sh b/scripts/restore.sh deleted file mode 100755 index 35e1ddda..00000000 --- a/scripts/restore.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Get the directory the script resides in, navigate their, and load env variables -__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -cd $__dir -export $(cat .env | xargs) - -cd .. - -restic -r $RESTIC_REPOSITORY_PREFIX/sgf.dev restore latest --target ./