Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
996e5d79
Commit
996e5d79
authored
6 years ago
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move dev server middleware to new namespace
parent
f65a1da0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
config/initializers/static_files.rb
config/initializers/static_files.rb
+1
-1
lib/gitlab/webpack/dev_server_middleware.rb
lib/gitlab/webpack/dev_server_middleware.rb
+2
-2
No files found.
config/initializers/static_files.rb
View file @
996e5d79
...
...
@@ -34,7 +34,7 @@ if app.config.serve_static_files
)
app
.
config
.
middleware
.
insert_before
(
Gitlab
::
Middleware
::
Static
,
Gitlab
::
Middleware
::
WebpackProxy
,
Gitlab
::
Webpack
::
DevServerMiddleware
,
proxy_path:
app
.
config
.
webpack
.
public_path
,
proxy_host:
dev_server
.
host
,
proxy_port:
dev_server
.
port
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/
middleware/webpack_proxy
.rb
→
lib/gitlab/
webpack/dev_server_middleware
.rb
View file @
996e5d79
...
...
@@ -3,8 +3,8 @@
# :nocov:
module
Gitlab
module
Middleware
class
WebpackProxy
<
Rack
::
Proxy
module
Webpack
class
DevServerMiddleware
<
Rack
::
Proxy
def
initialize
(
app
=
nil
,
opts
=
{})
@proxy_host
=
opts
.
fetch
(
:proxy_host
,
'localhost'
)
@proxy_port
=
opts
.
fetch
(
:proxy_port
,
3808
)
...
...
This diff is collapsed.
Click to expand it.
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