mirror of https://github.com/jumpserver/jumpserver
[Update] 添加koko访问错误说明
parent
673ebbec1b
commit
792fc3b0f0
|
@ -331,7 +331,7 @@ LOCALE_PATHS = [
|
|||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/1.10/howto/static-files/
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_URL = '{}/static/'.format(CONFIG.FORCE_SCRIPT_NAME)
|
||||
STATIC_ROOT = os.path.join(PROJECT_DIR, "data", "static")
|
||||
STATIC_DIR = os.path.join(BASE_DIR, "static")
|
||||
|
||||
|
|
|
@ -65,7 +65,8 @@ urlpatterns = [
|
|||
path('api/v2/', include(api_v2)),
|
||||
re_path('api/(?P<app>\w+)/(?P<version>v\d)/.*', views.redirect_format_api),
|
||||
path('api/health/', views.HealthCheckView.as_view(), name="health"),
|
||||
path('luna/', views.LunaView.as_view(), name='luna-view'),
|
||||
re_path('luna/.*', views.LunaView.as_view(), name='luna-view'),
|
||||
re_path('koko/.*', views.KokoView.as_view(), name='koko-view'),
|
||||
re_path('ws/.*', views.WsView.as_view(), name='ws-view'),
|
||||
path('i18n/<str:lang>/', views.I18NView.as_view(), name='i18n-switch'),
|
||||
path('settings/', include('settings.urls.view_urls', namespace='settings')),
|
||||
|
|
|
@ -234,3 +234,10 @@ class WsView(APIView):
|
|||
.format(self.ws_port))
|
||||
return JsonResponse({"msg": msg})
|
||||
|
||||
|
||||
class KokoView(View):
|
||||
def get(self, request):
|
||||
msg = _(
|
||||
"<div>Koko is a separately deployed program, you need to deploy Koko, configure nginx for url distribution,</div> "
|
||||
"</div>If you see this page, prove that you are not accessing the nginx listening port. Good luck.</div>")
|
||||
return HttpResponse(msg)
|
||||
|
|
|
@ -141,6 +141,7 @@ function activeNav(prefix) {
|
|||
var path = document.location.pathname;
|
||||
if (prefix) {
|
||||
path = path.replace(prefix, '');
|
||||
console.log(path);
|
||||
}
|
||||
var urlArray = path.split("/");
|
||||
var app = urlArray[1];
|
||||
|
|
Loading…
Reference in New Issue