Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
0c77a1cb
Commit
0c77a1cb
authored
Feb 26, 2015
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: use compression by default for all request - save bandwith
parent
dd70ebb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
debomatic-webui/lib/app.coffee
debomatic-webui/lib/app.coffee
+4
-0
debomatic-webui/package.json
debomatic-webui/package.json
+1
-0
No files found.
debomatic-webui/lib/app.coffee
View file @
0c77a1cb
...
@@ -7,6 +7,7 @@ io = require("socket.io")(server)
...
@@ -7,6 +7,7 @@ io = require("socket.io")(server)
serve_static
=
require
(
"serve-static"
)
serve_static
=
require
(
"serve-static"
)
serve_index
=
require
(
"serve-index"
)
serve_index
=
require
(
"serve-index"
)
compression
=
require
(
"compression"
)
errorhandler
=
require
(
"errorhandler"
)
errorhandler
=
require
(
"errorhandler"
)
routes
=
require
(
"../routes"
)
routes
=
require
(
"../routes"
)
...
@@ -24,6 +25,9 @@ if env is "development"
...
@@ -24,6 +25,9 @@ if env is "development"
else
else
app
.
use
(
errorhandler
())
app
.
use
(
errorhandler
())
# use compression by default
app
.
use
(
compression
())
# the views
# the views
app
.
set
(
"views"
,
__dirname
+
"/../views"
)
app
.
set
(
"views"
,
__dirname
+
"/../views"
)
app
.
set
(
"view engine"
,
"ejs"
)
app
.
set
(
"view engine"
,
"ejs"
)
...
...
debomatic-webui/package.json
View file @
0c77a1cb
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
"serve-index"
:
"*"
,
"serve-index"
:
"*"
,
"serve-static"
:
"*"
,
"serve-static"
:
"*"
,
"errorhandler "
:
"*"
,
"errorhandler "
:
"*"
,
"compression"
:
"*"
,
"ejs"
:
"1.*"
,
"ejs"
:
"1.*"
,
"socket.io"
:
"1.2.*"
,
"socket.io"
:
"1.2.*"
,
"tail"
:
"*"
,
"tail"
:
"*"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment