From ffa2447c59ee80fbf8dd8d642b0c972bb2f23037 Mon Sep 17 00:00:00 2001 From: Ludvig Lundgren Date: Sat, 26 Mar 2022 21:38:57 +0100 Subject: [PATCH] feat: change default port (#207) Change default port from 8989 to 7474 --- config.toml | 4 ++-- docker-compose.yml | 2 +- internal/config/config.go | 6 +++--- web/package.json | 2 +- web/src/utils/index.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.toml b/config.toml index ccef544..cbc982e 100644 --- a/config.toml +++ b/config.toml @@ -8,9 +8,9 @@ host = "127.0.0.1" # Port # -# Default: 8989 +# Default: 7474 # -port = 8989 +port = 7474 # Base url # Set custom baseUrl eg /autobrr/ to serve in subdirectory. diff --git a/docker-compose.yml b/docker-compose.yml index 73a279e..c99ae79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,5 +7,5 @@ services: volumes: - ./config:/config ports: - - 8989:8989 + - "7474:7474" restart: unless-stopped \ No newline at end of file diff --git a/internal/config/config.go b/internal/config/config.go index 8e5ab17..421d7a1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -17,7 +17,7 @@ var Config domain.Config func Defaults() domain.Config { return domain.Config{ Host: "localhost", - Port: 8989, + Port: 7474, LogLevel: "TRACE", LogPath: "", BaseURL: "/", @@ -59,9 +59,9 @@ host = "127.0.0.1" # Port # -# Default: 8989 +# Default: 7474 # -port = 8989 +port = 7474 # Base url # Set custom baseUrl eg /autobrr/ to serve in subdirectory. diff --git a/web/package.json b/web/package.json index ff4e968..c2a0966 100644 --- a/web/package.json +++ b/web/package.json @@ -2,7 +2,7 @@ "name": "web", "version": "0.1.0", "private": true, - "proxy": "http://127.0.0.1:8989", + "proxy": "http://127.0.0.1:7474", "homepage": ".", "dependencies": { "@fontsource/inter": "^4.5.4", diff --git a/web/src/utils/index.ts b/web/src/utils/index.ts index 14eb48f..ff70c85 100644 --- a/web/src/utils/index.ts +++ b/web/src/utils/index.ts @@ -26,7 +26,7 @@ export function baseUrl() { // get sseBaseUrl for SSE export function sseBaseUrl() { if (process.env.NODE_ENV === "development") - return `http://localhost:8989/`; + return `http://localhost:7474/`; return `${window.location.origin}${baseUrl()}`; }