Skip to content

Commit

Permalink
feat(server): update live777 version v0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 24, 2023
1 parent 03c7aac commit 8e45ec5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ services:
POSTGRES_PASSWORD: password

live777:
image: ghcr.io/binbat/live777-server:0.2.0
image: ghcr.io/binbat/live777-server:0.3.1
container_name: live777
hostname: live777
ports:
- "3000:3000/tcp"
- "7777:7777/tcp"

networks:
default:
Expand Down
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ min_machines_running = 0
processes = ["app"]

[env]
LIVE777_URL = "http://live777.binbat.com:3000"
LIVE777_URL = "http://live777.binbat.com:7777"
2 changes: 1 addition & 1 deletion server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package server
type Config struct {
Port string `env:"PORT" envDefault:"4000"`
DatabaseUrl string `env:"DATABASE_URL" envDefault:"user=postgres password=password dbname=woom sslmode=disable"`
Live777Url string `env:"LIVE777_URL" envDefault:"http://localhost:3000"`
Live777Url string `env:"LIVE777_URL" envDefault:"http://localhost:7777"`
Live777Token string `env:"LIVE777_TOKEN" envDefault:""`
}
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import presetUno from '@unocss/preset-uno'
export default defineConfig({
server: {
proxy: {
'^/whip/.*': 'http://localhost:3000',
'^/whep/.*': 'http://localhost:3000',
'^/whip/.*': 'http://localhost:7777',
'^/whep/.*': 'http://localhost:7777',
'^/room/.*': 'http://localhost:4000',
},
},
Expand Down

0 comments on commit 8e45ec5

Please sign in to comment.