Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api/notification/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ func Live(c *gin.Context) {
c.Header("Content-Type", "text/event-stream")
c.Header("Cache-Control", "no-cache")
c.Header("Connection", "keep-alive")
// https://stackoverflow.com/questions/27898622/server-sent-events-stopped-work-after-enabling-ssl-on-proxy/27960243#27960243
c.Header("X-Accel-Buffering", "no")

evtChan := make(chan *model.Notification)

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ cat > "$DataPath/app.ini" << EOF
PageSize = 10

[server]
HOST = 0.0.0.0
PORT = 9000
Host = 0.0.0.0
Port = 9000
RunMode = release

[cert]
Expand Down
Loading