Skip to content
Alexander Söderberg edited this page Nov 6, 2017 · 2 revisions

SSL

The server supports SSL. You just have to enable it in .iserver/config/server.yml

ssl:
  port: 443 # The SSL port
  keyStorePassword: password # The keystore password
  enable: true # Set to true to enable the SSL socket
  keyStore: './path/to/your/keystore.jks' # Full path to the keystore

You need a java keystore in order to enable the HTTPS server. This guide covers the setup process.

Forcing HTTPS

Through configuration:

You can force a view to be served through HTTPS by adding the view option forceHTTPS: true. An example setup:

views:
  std:
    filter: '[file=index].[extension=html]'
    options:
      filePattern: ${file}.${extension}
      folder: ./public
      excludeExtensions:
      - txt
      extensionRewrite:
        html: twig
      forceHTTPS: true
    type: std

Through code:

You can tell the server to redirect your views to HTTPS by overriding the #forceHTTPS() method in your RequestHandler:

@Override
public boolean forceHTTPS()
{
   return true;
}

Navigation

Templates

Configuration

Files can be found in .kvantum/config

Views

/commands

Development

Clone this wiki locally