-
Notifications
You must be signed in to change notification settings - Fork 7
SSL
Alexander Söderberg edited this page Nov 6, 2017
·
2 revisions
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.
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;
}
IntellectualServer
Files can be found in .kvantum/config
- Getting Started
- View Patterns
- File Patterns
- server.yml
views.yml- socketFilters.yml
- translations.yml
- SSL
- Getting Started
- Modules
- Hello World
- Plugins
- Events
- Account System
- Authorization
- Application System
- Sessions
- Create a view - OOP based
- Create a view - @Annotation based
- Middleware
- Extending Crush (Templating syntax)
- ViewReturn