mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 12:56:00 +00:00
#228 use nginx as proxy
This commit is contained in:
@@ -55,6 +55,7 @@ function start() {
|
||||
res.set({
|
||||
'Cache-Control': 'no-cache',
|
||||
'Content-Type': 'text/event-stream',
|
||||
'X-Accel-Buffering': 'no',
|
||||
Connection: 'keep-alive',
|
||||
});
|
||||
res.flushHeaders();
|
||||
|
||||
@@ -5,6 +5,7 @@ let init = '';
|
||||
module.exports = {
|
||||
setSseResponse(value) {
|
||||
sseResponse = value;
|
||||
setInterval(() => this.emit('ping'), 30 * 1000);
|
||||
},
|
||||
setElectronSender(value) {
|
||||
electronSender = value;
|
||||
|
||||
Reference in New Issue
Block a user