This commit is contained in:
parent
014401aa90
commit
2bb533736c
@ -2,13 +2,13 @@ services:
|
|||||||
confetti-api:
|
confetti-api:
|
||||||
image: gitea.rannes.dev/rannes.dev/confetti-api:main
|
image: gitea.rannes.dev/rannes.dev/confetti-api:main
|
||||||
ports:
|
ports:
|
||||||
- 8020:8080
|
- 7070:7070
|
||||||
restart: always
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.confetti-api.rule=Host(`confetti.rannes.dev`)
|
- traefik.http.routers.confetti-api.rule=Host(`confetti.rannes.dev`)
|
||||||
- traefik.http.services.confetti-api.loadbalancer.server.port=8020
|
- traefik.http.services.confetti-api.loadbalancer.server.port=7070
|
||||||
- traefik.http.routers.jellyfinrouter.service=confetti-api
|
- traefik.http.routers.confetti-api.service=confetti-api
|
||||||
- traefik.http.routers.confetti-api.tls=true
|
- traefik.http.routers.confetti-api.tls=true
|
||||||
- traefik.http.routers.confetti-api.entryPoints=https
|
- traefik.http.routers.confetti-api.entryPoints=https
|
||||||
- traefik.http.middlewares.confetti-api-cors.headers.accesscontrolallowmethods=GET,OPTIONS
|
- traefik.http.middlewares.confetti-api-cors.headers.accesscontrolallowmethods=GET,OPTIONS
|
||||||
|
4
main.go
4
main.go
@ -48,6 +48,6 @@ func main() {
|
|||||||
http.HandleFunc("/events", SSEHandler)
|
http.HandleFunc("/events", SSEHandler)
|
||||||
http.HandleFunc("/trigger", TriggerHandler)
|
http.HandleFunc("/trigger", TriggerHandler)
|
||||||
|
|
||||||
log.Println("Server running on port 8080")
|
log.Println("Server running on port 7070")
|
||||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
log.Fatal(http.ListenAndServe(":7070", nil))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user