mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
parent
2d3ab67604
commit
ffa2447c59
5 changed files with 8 additions and 8 deletions
|
@ -8,9 +8,9 @@ host = "127.0.0.1"
|
||||||
|
|
||||||
# Port
|
# Port
|
||||||
#
|
#
|
||||||
# Default: 8989
|
# Default: 7474
|
||||||
#
|
#
|
||||||
port = 8989
|
port = 7474
|
||||||
|
|
||||||
# Base url
|
# Base url
|
||||||
# Set custom baseUrl eg /autobrr/ to serve in subdirectory.
|
# Set custom baseUrl eg /autobrr/ to serve in subdirectory.
|
||||||
|
|
|
@ -7,5 +7,5 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
ports:
|
ports:
|
||||||
- 8989:8989
|
- "7474:7474"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
|
@ -17,7 +17,7 @@ var Config domain.Config
|
||||||
func Defaults() domain.Config {
|
func Defaults() domain.Config {
|
||||||
return domain.Config{
|
return domain.Config{
|
||||||
Host: "localhost",
|
Host: "localhost",
|
||||||
Port: 8989,
|
Port: 7474,
|
||||||
LogLevel: "TRACE",
|
LogLevel: "TRACE",
|
||||||
LogPath: "",
|
LogPath: "",
|
||||||
BaseURL: "/",
|
BaseURL: "/",
|
||||||
|
@ -59,9 +59,9 @@ host = "127.0.0.1"
|
||||||
|
|
||||||
# Port
|
# Port
|
||||||
#
|
#
|
||||||
# Default: 8989
|
# Default: 7474
|
||||||
#
|
#
|
||||||
port = 8989
|
port = 7474
|
||||||
|
|
||||||
# Base url
|
# Base url
|
||||||
# Set custom baseUrl eg /autobrr/ to serve in subdirectory.
|
# Set custom baseUrl eg /autobrr/ to serve in subdirectory.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"proxy": "http://127.0.0.1:8989",
|
"proxy": "http://127.0.0.1:7474",
|
||||||
"homepage": ".",
|
"homepage": ".",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/inter": "^4.5.4",
|
"@fontsource/inter": "^4.5.4",
|
||||||
|
|
|
@ -26,7 +26,7 @@ export function baseUrl() {
|
||||||
// get sseBaseUrl for SSE
|
// get sseBaseUrl for SSE
|
||||||
export function sseBaseUrl() {
|
export function sseBaseUrl() {
|
||||||
if (process.env.NODE_ENV === "development")
|
if (process.env.NODE_ENV === "development")
|
||||||
return `http://localhost:8989/`;
|
return `http://localhost:7474/`;
|
||||||
|
|
||||||
return `${window.location.origin}${baseUrl()}`;
|
return `${window.location.origin}${baseUrl()}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue