feat: change default port (#207)

Change default port from 8989 to 7474
This commit is contained in:
Ludvig Lundgren 2022-03-26 21:38:57 +01:00 committed by GitHub
parent 2d3ab67604
commit ffa2447c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 8 deletions

View file

@ -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.

View file

@ -7,5 +7,5 @@ services:
volumes:
- ./config:/config
ports:
- 8989:8989
- "7474:7474"
restart: unless-stopped

View file

@ -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.

View file

@ -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",

View file

@ -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()}`;
}