fix(api.url): set default api.url and re-use defaults in ssh wrappers
This commit is contained in:
parent
2f216c3acf
commit
8de3597958
3 changed files with 10 additions and 5 deletions
|
|
@ -26,13 +26,13 @@ import logging.config
|
|||
from paste.gzipper import make_gzip_middleware
|
||||
import pyramid.events
|
||||
from pyramid.wsgi import wsgiapp
|
||||
from pyramid.authorization import ACLAuthorizationPolicy
|
||||
from pyramid.config import Configurator
|
||||
from pyramid.settings import asbool, aslist
|
||||
from pyramid.httpexceptions import (
|
||||
HTTPException, HTTPError, HTTPInternalServerError, HTTPFound, HTTPNotFound)
|
||||
from pyramid.renderers import render_to_response
|
||||
|
||||
from rhodecode import api
|
||||
from rhodecode.model import meta
|
||||
from rhodecode.config import patches
|
||||
from rhodecode.config import utils as config_utils
|
||||
|
|
@ -527,7 +527,7 @@ def sanitize_settings_and_apply_defaults(global_config, settings):
|
|||
|
||||
# TODO: johbo: Re-think this, usually the call to config.include
|
||||
# should allow to pass in a prefix.
|
||||
settings_maker.make_setting('rhodecode.api.url', '/_admin/api')
|
||||
settings_maker.make_setting('rhodecode.api.url', api.DEFAULT_URL)
|
||||
|
||||
# Sanitize generic settings.
|
||||
settings_maker.make_setting('default_encoding', 'UTF-8', parser='list')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue