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
b5212a6d
Commit
b5212a6d
authored
Jan 15, 2015
by
Luca Falavigna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a staging instance
parent
6e198d93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
config/staging.config
config/staging.config
+9
-0
proxy/proxy.js
proxy/proxy.js
+7
-0
No files found.
config/staging.config
0 → 100644
View file @
b5212a6d
###
debomatic
-
webui
staging
configuration
###
architecture
=
"staging"
port
=
8099
# DO NOT EDIT THIS LINE:
config
=
require
(
process
.
env
.
DWCONFIG
+
'/mergerconfig.coffee'
)(
architecture
,
port
)
proxy/proxy.js
View file @
b5212a6d
...
@@ -53,6 +53,13 @@ subdomains["debomatic-s390x.debian.net"] = new httpProxy.createProxyServer({
...
@@ -53,6 +53,13 @@ subdomains["debomatic-s390x.debian.net"] = new httpProxy.createProxyServer({
}
}
})
})
subdomains
[
"
debomatic-staging.debian.net
"
]
=
new
httpProxy
.
createProxyServer
({
target
:
{
host
:
'
localhost
'
,
port
:
8099
}
})
var
mainServer
=
http
.
createServer
(
function
(
req
,
res
)
{
var
mainServer
=
http
.
createServer
(
function
(
req
,
res
)
{
var
host
=
req
.
headers
.
host
var
host
=
req
.
headers
.
host
if
(
subdomains
.
hasOwnProperty
(
host
))
if
(
subdomains
.
hasOwnProperty
(
host
))
...
...
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