| | |
| | | HashSessionManager sessionManager = new HashSessionManager();
|
| | | sessionManager.setHttpOnly(true);
|
| | | // Use secure cookies if only serving https
|
| | | sessionManager.setSecureCookies(params.port <= 0 && params.securePort > 0);
|
| | | sessionManager.setSecureRequestOnly(params.port <= 0 && params.securePort > 0);
|
| | | rootContext.getSessionHandler().setSessionManager(sessionManager);
|
| | |
|
| | | // Ensure there is a defined User Service
|
| | |
| | | rootContext.setHandler(sh);
|
| | | }
|
| | |
|
| | | // Setup the GitBlit context
|
| | | // Setup the Gitblit context
|
| | | GitBlit gitblit = newGitblit(settings, baseFolder);
|
| | | gitblit.configureContext(settings, baseFolder, true);
|
| | | rootContext.addEventListener(gitblit);
|
| | |
|
| | | try {
|