def get_base_config(): config = [get_listen_config(is_proxy=False, port=settings.PROXIES_CONFIG.api_port)] config += [ get_logging_config(), get_gzip_config(), get_charset_config(), get_buffering_config(), get_timeout_config(), get_uwsgi_config(), get_error_page_config(), get_robots_config(), get_favicon_config(), get_api_locations_config(), ] return clean_config(config)
def test_api_locations(self): expected = """ location /static/ { alias /polyaxon/static/; autoindex on; expires 30d; add_header Cache-Control private; } location /tmp/ { alias /tmp/; expires 0; add_header Cache-Control private; internal; } """ # noqa assert get_api_locations_config() == expected