Change docs to load from HTTPS

This commit is contained in:
Joseph Schorr 2015-08-05 14:34:11 -04:00
parent e2a624fb90
commit e53c3e23be
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,8 @@ def build_requests_session():
CLIENT_WHITELIST = ['SERVER_HOSTNAME', 'PREFERRED_URL_SCHEME', 'MIXPANEL_KEY', CLIENT_WHITELIST = ['SERVER_HOSTNAME', 'PREFERRED_URL_SCHEME', 'MIXPANEL_KEY',
'STRIPE_PUBLISHABLE_KEY', 'ENTERPRISE_LOGO_URL', 'SENTRY_PUBLIC_DSN', 'STRIPE_PUBLISHABLE_KEY', 'ENTERPRISE_LOGO_URL', 'SENTRY_PUBLIC_DSN',
'AUTHENTICATION_TYPE', 'REGISTRY_TITLE', 'REGISTRY_TITLE_SHORT', 'AUTHENTICATION_TYPE', 'REGISTRY_TITLE', 'REGISTRY_TITLE_SHORT',
'CONTACT_INFO', 'AVATAR_KIND', 'LOCAL_OAUTH_HANDLER', 'DOCUMENTATION_LOCATION'] 'CONTACT_INFO', 'AVATAR_KIND', 'LOCAL_OAUTH_HANDLER', 'DOCUMENTATION_LOCATION',
'DOCUMENTATION_METADATA']
def frontend_visible_config(config_dict): def frontend_visible_config(config_dict):
@ -234,6 +235,7 @@ class DefaultConfig(object):
# The location of the Quay documentation. # The location of the Quay documentation.
DOCUMENTATION_LOCATION = 'http://docs.quay.io' DOCUMENTATION_LOCATION = 'http://docs.quay.io'
DOCUMENTATION_METADATA = 'https://coreos.github.io/quay-docs/search.json'
# Experiment: Async garbage collection # Experiment: Async garbage collection
EXP_ASYNC_GARBAGE_COLLECTION = [] EXP_ASYNC_GARBAGE_COLLECTION = []

View file

@ -72,7 +72,7 @@ angular.module('quay').factory('DocumentationService', ['Config', '$timeout', fu
return; return;
} }
$.ajax(Config.DOCUMENTATION_LOCATION + '/search.json') $.ajax(Config.DOCUMENTATION_METADATA)
.done(function(r) { .done(function(r) {
documentationData = r; documentationData = r;
callback(documentationData); callback(documentationData);