From 95853c8a583f79edd2f8a3fb41a5608a51147ebd Mon Sep 17 00:00:00 2001 From: NeKz Date: Sun, 22 Oct 2023 23:41:57 +0200 Subject: [PATCH] Update prod domain to portal2.sr --- .github/workflows/release.yml | 2 +- README.md | 2 +- SECURITY.md | 2 +- docker/compose/autorender.portal2.sr.yml | 4 ++-- src/bot/commands/render.ts | 4 ++-- src/client/cli.ts | 2 +- src/client/constants.ts | 4 ++-- src/client/deno.json | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1bea082..9f4735e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,7 +49,7 @@ jobs: name: Autorender Client ${{ github.ref_name }} prerelease: ${{ contains(github.ref, 'pre') }} body: | - For render clients of [autorender.nekz.me](https://autorender.nekz.me). + For render clients of [autorender.portal2.sr](https://autorender.portal2.sr). Windows: [Download autorender-${{ github.ref_name }}-windows.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-windows.zip) Linux: [Download autorender-${{ github.ref_name }}-linux.zip](https://github.com/NeKzor/autorender/releases/download/${{ github.ref_name }}/autorender-${{ github.ref_name }}-linux.zip) files: | diff --git a/README.md b/README.md index 5291649..6e6835d 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ sequenceDiagram Discord->>Bot: Upload demo file Bot->>Discord: Send status message - Note right of Bot: autorender.nekz.me + Note right of Bot: autorender.portal2.sr Bot->>+Server: Create video Server->>Server: Process demo file Server->>-Bot: Send video data diff --git a/SECURITY.md b/SECURITY.md index 79c0ca0..e25b372 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -9,7 +9,7 @@ ## What NOT to do -- Do NOT attack the production system (autorender.nekz.me) +- Do NOT attack the production system (autorender.portal2.sr) - Do NOT publish your report before the deadlines, see below - Do NOT report useless attack surfaces like - Social engineering diff --git a/docker/compose/autorender.portal2.sr.yml b/docker/compose/autorender.portal2.sr.yml index 2d133b4..467412f 100644 --- a/docker/compose/autorender.portal2.sr.yml +++ b/docker/compose/autorender.portal2.sr.yml @@ -13,7 +13,7 @@ services: - autorender.server:127.0.0.1 volumes: - ./logs/server:/logs/server:rw - - ./storage:/storage:rw + - /mnt/autorender-content:/storage:rw - ./.env.server:/app/.env:rw - ./entrypoint.server.sh:/app/entrypoint.sh:rw bot: @@ -42,4 +42,4 @@ services: volumes: - ./initdb:/docker-entrypoint-initdb.d - ./mysql:/var/lib/mysql - - ./backups:/backups + - /mnt/autorender-content/backups:/backups diff --git a/src/bot/commands/render.ts b/src/bot/commands/render.ts index 03f6cfb..80e23b8 100644 --- a/src/bot/commands/render.ts +++ b/src/bot/commands/render.ts @@ -56,8 +56,8 @@ const validateUrl = (urlString: string) => { return isNaN(id) ? null : `https://board.portal2.sr/getDemo?id=${id}`; } - // Input: https://autorender.nekz.me/queue/ScDd_mkTzZs - // Input: https://autorender.nekz.me/videos/ScDd_mkTzZs + // Input: https://autorender.portal2.sr/queue/ScDd_mkTzZs + // Input: https://autorender.portal2.sr/videos/ScDd_mkTzZs // Output: {AUTORENDER_BASE_API}/storage/demos/ScDd_mkTzZs const queueUrl = getPublicUrl('/queue/'); diff --git a/src/client/cli.ts b/src/client/cli.ts index e3851a0..5a33135 100644 --- a/src/client/cli.ts +++ b/src/client/cli.ts @@ -22,7 +22,7 @@ export const getOptions = () => options; const cli = new Command() .name('autorender') .version(AutorenderVersion) - .description('Command line app for rendering and uploading videos to autorender.nekz.me.') + .description('Command line app for rendering and uploading videos to autorender.portal2.sr.') .globalOption('-v, --verbose', 'Turn on verbose error logging.') .globalOption('-d, --dev', 'Switch into developer mode.', { hidden: true }) .globalAction(({ verbose, dev }) => { diff --git a/src/client/constants.ts b/src/client/constants.ts index 00df4c2..a08e7b6 100644 --- a/src/client/constants.ts +++ b/src/client/constants.ts @@ -8,12 +8,12 @@ export const AutorenderVersion = '1.0.0'; export const AutorenderConnectUri = { dev: 'wss://autorender.portal2.local/connect/client', - prod: 'wss://autorender.nekz.me/connect/client', + prod: 'wss://autorender.portal2.sr/connect/client', }; export const AutorenderBaseApi = { dev: 'https://autorender.portal2.local', - prod: 'https://autorender.nekz.me', + prod: 'https://autorender.portal2.sr', }; export const UserAgent = `autorender-client/${AutorenderVersion}`; diff --git a/src/client/deno.json b/src/client/deno.json index a8e1faf..a7fd51e 100644 --- a/src/client/deno.json +++ b/src/client/deno.json @@ -2,7 +2,7 @@ "tasks": { "dev": "deno run --no-prompt --allow-hrtime --allow-env --allow-read=\"autorender.yaml,autorender.cfg,log,worker.ts\" --allow-write=\"autorender.yaml,log\" --allow-run --allow-net=deno.land,autorender.portal2.local,steamusercontent-a.akamaihd.net,api.github.com,github.com,objects.githubusercontent.com --unsafely-ignore-certificate-errors=autorender.portal2.local --watch main.ts --dev", "test": "deno test --allow-net --allow-read --allow-env", - "compile": "deno compile --output bin/$COMPILATION_BINARY_NAME --target $COMPILATION_TARGET --include ./worker.ts --include ./upload.ts --no-prompt --allow-hrtime --allow-env --allow-read=\"autorender.yaml,autorender.cfg,log,worker.ts$COMPILATION_READ_WRITE_GAME_PATHS\" --allow-write=\"autorender.yaml,log$COMPILATION_READ_WRITE_GAME_PATHS\" --allow-run --allow-net=deno.land,autorender.portal2.local,autorender.nekz.me,steamusercontent-a.akamaihd.net,api.github.com,github.com,objects.githubusercontent.com $COMPILATION_DEVELOPER_FLAGS main.ts" + "compile": "deno compile --output bin/$COMPILATION_BINARY_NAME --target $COMPILATION_TARGET --include ./worker.ts --include ./upload.ts --no-prompt --allow-hrtime --allow-env --allow-read=\"autorender.yaml,autorender.cfg,log,worker.ts$COMPILATION_READ_WRITE_GAME_PATHS\" --allow-write=\"autorender.yaml,log$COMPILATION_READ_WRITE_GAME_PATHS\" --allow-run --allow-net=deno.land,autorender.portal2.local,autorender.portal2.sr,steamusercontent-a.akamaihd.net,api.github.com,github.com,objects.githubusercontent.com $COMPILATION_DEVELOPER_FLAGS main.ts" }, "fmt": { "useTabs": false,