Kikaha comes with a few modules out-of-box, two of them are HTTP and HTTPS modules. Both allow developers to listen, respectively, HTTP and HTTPS requests. Bellow is described how to enable and configure these modules.
The HTTP module comes enabled by default. Developers could configure through the application.yml
file as shown bellow.
server:
http:
enabled: true
host: "0.0.0.0"
port: 9000
All HTTP properties is placed at the server.http
and has the following attributes:
The HTTPS module comes disabled by default. To configure a HTTPS you can enable it in a similar approach as shown above at the HTTP module. Bellow is the default HTTPS module configuration.
server:
https:
enabled: false
host: '0.0.0.0'
port: 9001
keystore: "server.keystore"
keystore-security-provider: "JKS"
password: "password"
truststore: "server.truststore"
cert-security-provider: "TLS"
redirect-to-http: true
All HTTPS properties is placed at the server.https
and has the following attributes:
true
will make all requests made to HTTP being redirected to the HTTPS port.WELCOME About Kikaha philosophy
GETTING STARTED Getting started in 1 minute Creating a Kikaha maven project Architecture overview
TUTORIALS Logging configuration Configuring the server Creating your first HTTP route Kikaha's command line interface Configuring your favorite IDE Wro4j Integration
CORE FEATURES HTTP and HTTPS Routing static assets Dependency injection Authentication and authorization Smart routes
ESSENTIAL MODULES μRouting API WebSocket Routing Database Connection Pool JSON with Jackson Protobuf Mustache Templates Rocker Templates BCrypt
CLOUD MODULES Overview of Cloud Modules Consul.io Codahale's Metrics Auth0 Single Sign-On μWorkers - Actor-like API Hazelcast
AWS-RELATED MODULES Overview of AWS-Related Modules Deploying Applications on AWS AWS IAM Credentials AWS EC2 AWS SQS queues AWS CloudWatch metrics AWS Application Load Balancer AWS Lambda functions AWS X-Ray
ADVANCED TOPICS Creating custom modules Routing with Undertow's API Creating custom cloud modules