Skip to content

Commit 16afbb8

Browse files
make download url configurable to avoid hardcoded server name in code.
1 parent 5d0b670 commit 16afbb8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/webui/app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def link_to_package project, package
2929
end
3030

3131
def repo_url(project, repo='' )
32-
'http://download.opensuse.org/repositories/' + project.gsub(':', ':/') + "/#{repo}"
32+
"#{DOWNLOAD_URL}/" + project + "/#{repo}"
3333
end
3434

3535

src/webui/config/environments/production.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
FRONTEND_PROTOCOL = 'http'
2626

2727
BUGZILLA_HOST = "https://bugzilla.novell.com"
28+
DOWNLOAD_URL = "http://download.opensuse.org/repositories"
2829

2930
# ICHAIN_MODE can be one of 'on', 'off' or 'simulate'
3031
ICHAIN_MODE = "on"

src/webui/config/environments/production_slave.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
FRONTEND_PORT = 80
2525
FRONTEND_PROTOCOL = 'http'
2626

27-
BUGZILLA_HOST = "https://bugzilla.novell.com"
27+
BUGZILLA_HOST = "http://my.bugzilla/"
28+
DOWNLOAD_URL = "http://127.0.42.3/"
2829

2930
# ICHAIN_MODE can be one of 'on', 'off' or 'simulate'
3031
ICHAIN_MODE = "off"

0 commit comments

Comments
 (0)